Hi 

 

Hi 

 

I am using XFire 1.2 to expose my web services using Spring remoting
using RPC style. I use a  SAAJ component on ServiceMix to invoke this
service. I notice from the logs that the service invocation is fine but
servicemix response to the client fails due to namespace problems. 

 

The sample request and sample response are attached. Any idea why the
"x/" is generated in the namespace response by XFire? The trailing slash
'/' in the namespace creates the problem. Can something be done to avoid
the exception? 

 

Client Request

<?xml version="1.0" encoding="UTF-8" ?> 

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns1="http://www.ACORD.org/standards/PC_Surety/ACORD1.9.1/xml/"; 

            xmlns:ws="http://bluetropics.hoike.net/service";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance>

<soapenv:Body>

            <ws:addAddress><ns1:Addr1>My Test
Address</ns1:Addr1></ws:addAddress>

  </soapenv:Body>

</soapenv:Envelope>

 

Service Response 

 

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

<soap:Body><addAddressResponse
xmlns="http://bluetropics.hoike.net/service";>

<x/:Addr1
xmlns:x/="http://www.ACORD.org/standards/PC_Surety/ACORD1.9.1/xml/";>Addr
ess from Server </x/:Addr1></addAddressResponse>

</soap:Body></soap:Envelope>

 

 

ServiceMix Exception 

 

<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapenv:Body>
<soapenv:Fault xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><faultcode
/><faultstring /><detail><ns1:stackTrace
xmlns:ns1="http://xml.apache.org/axis/";>org.xml.sax.SAXParseException:
Element type "x" must be followed by either attribute specifications,
">" or "/>".        at
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unkno
wn Source)           at
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source) at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)   at
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)   at
org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)   at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)      at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDis
patcher.dispatch(Unknown Source)            at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unkno
wn Source)            at
org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)      at
org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)     at
org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)     at
org.apache.axis.encoding.DeserializationContext.parse(DeserializationCon
text.java:227)           at
org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)       at
org.apache.axis.client.Call.invokeEngine(Call.java:2804)    at
org.apache.axis.client.Call.invoke(Call.java:2767)            at
org.apache.axis.client.Call.invoke(Call.java:1870)           at
org.apache.axis.soap.SOAPConnectionImpl.call(SOAPConnectionImpl.java:90)
at
org.apache.servicemix.components.saaj.SaajBinding.transform(SaajBinding.
java:97)      at
org.apache.servicemix.components.util.TransformComponentSupport.onMessag
eExchange(TransformComponentSupport.java:65)          at
org.apache.servicemix.jbi.messaging.DeliveryChannelImpl.processInBound(D
eliveryChannelImpl.java:622)    at
org.apache.servicemix.jbi.nmr.flow.AbstractFlow.doRouting(AbstractFlow.j
ava:168)          at
org.apache.servicemix.jbi.nmr.flow.seda.SedaFlow.doRouting(SedaFlow.java
:176) at
org.apache.servicemix.jbi.nmr.flow.seda.SedaQueue$1.run(SedaQueue.java:2
26)            at
org.apache.geronimo.connector.work.WorkerContext.run(WorkerContext.java:
291)         at
EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown
Source)  at
java.lang.Thread.run(Thread.java:595)</ns1:stackTrace><ns2:hostname
xmlns:ns2="http://xml.apache.org/axis/";>phantom</ns2:hostname></detail><
/soapenv:Fault></soapenv:Body></soapenv:Envelope>

 

 

Regards

Kiran
*************************************************************** 
The information in this email is confidential and may be 
legally privileged. It is intended solely for the addressee. If 
you have received this communication in error, please contact 
the sender immediately, return the original message to the 
sender, and delete the material from your computer.  Thank you. 
***************************************************************

Reply via email to