Hi,
I got one more problem while using Metro client for a remote webservice. I have one WS,
which is deployed at our local server and i am able to connect it by mentioning full
location of the WSDL (
http://localhost:8080/SampleService/Sample.wsdl).
But in second scenario, i am trying to connect a WS, which is developed in different
technology and deployed in remote location. We got the endpoint address something like
this.
anonymous wrote :
http://hostname:portnumber/
I created client using wsconsume tool and created jar to connect the webservice. iam
getting the following exception:
anonymous wrote :
| Exception in thread "main"
com.sun.xml.internal.ws.streaming.XMLStreamReaderException: XML reader error:
javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,62]
| Message: White spaces are required between publicId and systemId.
| at
com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.wrapException(XMLStreamReaderUtil.java:242)
| at
com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:70)
| at
com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.nextContent(XMLStreamReaderUtil.java:85)
| at
com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.nextElementContent(XMLStreamReaderUtil.java:75)
| at
com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.hasWSDLDefinitions(RuntimeWSDLParser.java:195)
| at
com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:108)
| at
com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:226)
| at
com.sun.xml.internal.ws.client.WSServiceDelegate.(WSServiceDelegate.java:189)
| at
com.sun.xml.internal.ws.client.WSServiceDelegate.(WSServiceDelegate.java:159)
| at
com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:83)
| at javax.xml.ws.Service.(Service.java:56)
| at v1.ase.aorta.cqs_co_za.AseService.(AseService.java:45)
| at v1.ase.aorta.cqs_co_za.client.TestAseService.main(TestAseService.java:11)
| Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,62]
| Message: White spaces are required between publicId and systemId.
| at
com.sun.org.apache.xerces.internal.impl.XMLStreamReaderImpl.next(XMLStreamReaderImpl.java:588)
| at
com.sun.xml.internal.ws.util.xml.XMLStreamReaderFilter.next(XMLStreamReaderFilter.java:78)
| at
com.sun.xml.internal.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:51)
| ... 11 more
|
I changed some namespaces and i got different exception saying that the service location
is un parsable. But if i use, AXIS2 for the same, iam able to connect the service
eventhough i didnot mentioned the full url of the WSDL.
If any one got any solution for this, please let me know.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4251845#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...