Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

java client to call .net web service

 
sujith delpachithra
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
i am in big problem with creating a java client to call a .asmx web sevice. i am using jdeveloper for development. when i am going to create a web proxy to call the service i am getting following error.

here is the error:

oracle.jdeveloper.webservices.model.WebServiceException: Error creating model from wsdl "http://testurl.com/mservice.asmx?wsdl": undefined element declaration 's:schema'
at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1455)
at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2835)
at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2600)
at oracle.jdeveloper.webservices.model.java.JavaWebService.<init>(JavaWebService.java:439)
at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy$ProxyJavaWebService.<init>(WebServiceProxy.java:2117)
at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.updateServiceModel(WebServiceProxy.java:1581)
at oracle.jdeveloper.webservices.model.proxy.WebServiceProxy.setDescription(WebServiceProxy.java:506)
at oracle.jdevimpl.webservices.wizard.jaxrpc.proxy.ProxyJaxWsSpecifyWSDLPanel.setDescription(ProxyJaxWsSpecifyWSDLPanel.java:234)
at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.buildModel(SpecifyWsdlPanel.java:1068)
at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$6.run(SpecifyWsdlPanel.java:639)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:643)
at java.lang.Thread.run(Thread.java:619)
Caused by: oracle.j2ee.ws.common.tools.api.ValidationException: Error creating model from wsdl "http://testurl.com/msservice.asmx?wsdl": undefined element declaration 's:schema'
at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:652)
at oracle.j2ee.ws.tools.wsa.WsdlToJavaTool.createJAXWSModel(WsdlToJavaTool.java:469)
at oracle.j2ee.ws.tools.wsa.Util.getJaxWsSeiInfo(Util.java:1352)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.jdeveloper.webservices.Assembler$2.invoke(Assembler.java:145)
at $Proxy29.getJaxWsSeiInfo(Unknown Source)
at oracle.jdeveloper.webservices.model.java.JavaWebService.getSeiInfo(JavaWebService.java:1550)
at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1296)
... 11 more
Caused by: oracle.j2ee.ws.common.tools.api.ValidationException: undefined element declaration 's:schema'
at oracle.j2ee.ws.tools.wsa.SchemaTool.genValueTypes(SchemaTool.java:188)
at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:635)
... 21 more
Caused by: oracle.j2ee.ws.common.databinding.common.spi.DatabindingException: undefined element declaration 's:schema'
at oracle.j2ee.ws.common.tools.databinding.jaxb20.JAXB20TypeGenerator.generateJavaTypes(JAXB20TypeGenerator.java:119)
at oracle.j2ee.ws.tools.wsa.SchemaTool.genValueTypes(SchemaTool.java:186)
... 22 more

Please, help???
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
A guess is that there is some kind of problem with the WSDL from which you try to create the client.
Try using a testing tool like soapUI to communicate with the web service. If this succeeds, then the WSDL and service is without problems.
Best wishes!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!