NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Problem consuming web service/creating client

 
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users
View previous topic :: View next topic  
Author Message
vjenks



Joined: 09 Dec 2009
Posts: 10
Location: USA

PostPosted: Wed Dec 09, 2009 3:57 pm    Post subject: Problem consuming web service/creating client Reply with quote

I'm trying to consume a third-party web service which uses https (SSL). I know very little about web services in general, other than the few tutorials I've followed to get started.

I get the attached dialog error message when trying to create the client. I used the JAX-WS option when creating the client, in Netbeans 6.7.1

When I go to the folder described in the error, there is only a single HTML file. Isn't there supposed to be an XML file?

Refreshing gives me this exception:

Quote:

[ERROR] The entity "nbsp" was referenced, but not declared.
line 19 of file:/C:/Documents%20and%20Settings/vjenks/My%20Documents/NetBeansProjects/Lookup/LookupEJB/src/conf/xml-resources/web-service-references/SearchWSv2/wsdl/www.someurl.com/clts/searchwsv2

java.lang.ExceptionInInitializerError
at com.sun.xml.ws.mex.client.MetadataResolverImpl.<init>(MetadataResolverImpl.java:51)
at com.sun.xml.ws.mex.client.MetadataResolverFactoryImpl.metadataResolver(MetadataResolverFactoryImpl.java:52)
at com.sun.tools.ws.wsdl.parser.MetadataFinder.getFromMetadataResolver(MetadataFinder.java:201)
at com.sun.tools.ws.wsdl.parser.MetadataFinder.parseWSDL(MetadataFinder.java:119)
at com.sun.tools.ws.wsdl.parser.WSDLParser.parse(WSDLParser.java:141)
at com.sun.tools.ws.processor.modeler.wsdl.WSDLModeler.buildModel(WSDLModeler.java:126)
at com.sun.tools.ws.wscompile.WsimportTool.run(WsimportTool.java:182)
at com.sun.tools.ws.ant.WsImport2.execute(WsImport2.java:665)
at com.sun.istack.tools.ProtectedTask.execute(ProtectedTask.java:55)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor83.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:278)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:497)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Caused by: java.lang.NullPointerException
at javax.xml.bind.ContextFinder.find(ContextFinder.java:275)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
at com.sun.xml.ws.mex.client.MetadataClient.<clinit>(MetadataClient.java:92)
... 24 more


I remove the h2 tag w/ the nbsp inside of it and get the same exception, presumably because it didn't find a schema, but rather an HTML file in the xml-resources folder.

Any ideas?

Thanks!



jax-ws_nb_error.gif
 Description:
 Filesize:  13.6 KB
 Viewed:  1625 Time(s)

jax-ws_nb_error.gif


Back to top
vjenks



Joined: 09 Dec 2009
Posts: 10
Location: USA

PostPosted: Thu Dec 10, 2009 3:32 pm    Post subject: Reply with quote

Anyone? *bump*. Is there a workaround? Anything?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Java EE Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo