- This topic has 1 reply, 2 voices, and was last updated 17 years, 7 months ago by tomeksz.
-
AuthorPosts
-
imurilloMemberAs a newbie to SOAP development and XFIRE I’m having a heck of a problem trying to get a soap client up and running.
If I use the myeclipse web service explorer it returns a correct result meaning that my endpoint and service request are correct.
The classes were generated from the WSDL to java wizard.
My code is the following:
//create a class to get the soap sevices
Service serviceModel = new ObjectServiceFactory().create(ServicioAutenticacionSoap.class);
//Get the service
ServicioAutenticacionSoap soapTest = (ServicioAutenticacionSoap) new XFireProxyFactory().create(serviceModel, “http://www.geoservicios.com/V2.0/sath/Sath.asmx/ServicioAutenticacionSoap”);
//request user access
soapTest.obtenerTestigoPredeterminado(“user”, “password”,”role”);When I try to get a Service from an MS IIS SOAP server the following error is returned.
Exception in thread “main” org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested exception is org.codehaus.xfire.fault.XFireFault: Unexpected character ‘1’ (code 49) in start tag Expected a quote
at [row,col {unknown-source}]: [20,76]
org.codehaus.xfire.fault.XFireFault: Unexpected character ‘1’ (code 49) in start tag Expected a quote
at [row,col {unknown-source}]: [20,76]
at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89)
at org.codehaus.xfire.client.Client.onReceive(Client.java:386)
at org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:139)
at org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48)
at org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75)
at org.codehaus.xfire.client.Client.invoke(Client.java:335)
at org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77)
at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57)
at $Proxy9.obtenerTestigoPredeterminado(Unknown Source)
at testerpack.test.main(test.java:21)
Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character ‘1’ (code 49) in start tag Expected a quote
at [row,col {unknown-source}]: [20,76]
at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:600)
at com.ctc.wstx.sr.BasicStreamReader.handleNsAttrs(BasicStreamReader.java:2890)
at com.ctc.wstx.sr.BasicStreamReader.handleStartElem(BasicStreamReader.java:2815)
at com.ctc.wstx.sr.BasicStreamReader.nextFromTree(BasicStreamReader.java:2737)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1004)
at org.codehaus.xfire.soap.handler.ReadHeadersHandler.invoke(ReadHeadersHandler.java:44)
at org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131)
at org.codehaus.xfire.client.Client.onReceive(Client.java:382)
… 10 moreWould anyone know the exact reason behind this error. Any help would be greatly appreciated. 😥
tomekszMemberi answered your question here https://www.genuitec.com/forums/topic/xfire-error/&highlight=
-
AuthorPosts