Did you remove the xfire-all-1.0-20051129.225317.jar from your working
directory
and replaced it by the xfire-all-1.0-20051222.jar i pointed you ?
In both cases, could you please send the whold servicemix log, please ?
As i said in my previous mail, i do think i have reproduced your problems.
The xml was invalid, but this is fixed in current apache svn head.
Btw, what problems did you had with it ?
Regards,
Guillaume Nodet
[EMAIL PROTECTED] wrote:
In addition, I think that the HttpSoapConnector is stripping any namespace
information that might be contained within the original request.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 22, 2005 12:44 PM
To: [email protected]
Subject: RE: [servicemix-user] Problems invoking a web
service with SOAP
Guillaume,
I performed an svn up to 358599; copied the contents from
components/http
and components/saaj over into the stable CODEHAUS-1055
snapshot that I've
been working with, and rebuilt the distribution, and I am
still getting XML
that is invalid:
<?xml version='1.0' encoding='UTF-8'?><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:Bo
dy><wn2:getPer
sonResponse xmlns:wn2="http://systinet.com/wsdl/com/cexp/ws/test/"
xmlns="http://www.w3.org/2000/xmlns/"
xmlns="http://www.w3.org/2000/xmlns/"
xmlns="http://www.w3.org/2000/xmlns/"
xmlns="http://www.w3.org/2000/xmlns/"
xmlns="http://www.w3.org/2000/xmlns/"
xmlns:d="http://www.w3.org/2001/XMLSchema"
xmlns:e="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wn0="http://idoox.com/interface"
xmlns:wn1="http://systinet.com/soap-jta/"
xmlns:wn2="http://systinet.com/wsdl/com/cexp/ws/test/"><wn2:response
xmlns:wn2="http://systinet.com/wsdl/com/cexp/ws/test/"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
i:type="wn2:Person"><wn2:description
xmlns:wn2="http://systinet.com/wsdl/com/cexp/ws/test/"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
i:type="d:string">Desktop customizer
(1135279931909)</wn2:description><wn2:firstName
xmlns:wn2="http://systinet.com/wsdl/com/cexp/ws/test/"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
i:type="d:string">Jonathan</wn2:firstName><wn2:lastName
xmlns:wn2="http://systinet.com/wsdl/com/cexp/ws/test/"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
i:type="d:string">Edwards</wn2:lastName></wn2:response></wn2:g
etPersonRespon
se></soap:Body></soap:Envelope>
Several namespaces are defined multiple times. Is there
anotehr version that
I should be using? This issue is very significant, and we
cannot proceed any
further with ServiceMix in our testing. The invalid XML is
also the reason
why I suspect that the attempts at XSLT fail.
Also, I tried running the Apache-HEAD build, but it will not
start. I am
using CODEHAUE-1055 plus the changes that I am aware of (http
and saaj).
Please let me know if this is incorrect.
/jonathan
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 22, 2005 11:26 AM
To: [email protected]
Subject: RE: [servicemix-user] Problems invoking a web
service with SOAP
Ah - ok. Thanks.
I'll pull those files, plus the modified SaajMarshaller that
you worked on
yesterday.
I'll let you know how the tests go.
/jonathan
-----Original Message-----
From: Guillaume Nodet [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 22, 2005 11:24 AM
To: [email protected]
Subject: Re: [servicemix-user] Problems invoking a web
service with SOAP
You can try grabbing only the org.servicemix.components.http
new files.
You also need to replace the xfire jar in your classpath by the
following one:
http://dist.codehaus.org/servicemix/jars/xfire-all-1.0-20051222.jar
But be aware that some modules won't compile any more
(servicemix-components
should be ok).
Cheers,
Guillaume Nodet
[EMAIL PROTECTED] wrote:
Is it possible to just pull the changed files, or should I
just use the full
Apache HEAD build?
-----Original Message-----
From: Guillaume Nodet [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 22, 2005 11:15 AM
To: [email protected]
Subject: Re: [servicemix-user] Problems invoking a web
service with SOAP
I finally managed to create a test case reproducing
your problem.
The xml generated was invalid.
The problem was in another project, but this should now be fixed
in svn head.
Cheers,
Guillaume Nodet
[EMAIL PROTECTED] wrote:
Its still not working, even with this change. Whats weirder
is that my
XsltComponent that was being used elsewhere no longer
works at all.
-----Original Message-----
From: Guillaume Nodet [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 21, 2005 2:17 PM
To: [email protected]
Subject: Re: [servicemix-user] Problems invoking a web
service with SOAP
I'm thinking that the SOAPAction header should be ""
instead of empty.
I've just changed it in HttpSoapInOutBinding, so you may want
to test it
once agina
and it will hopefully work better.
Guillaume
[EMAIL PROTECTED] wrote:
Guillaume,
Thanks for your help, but things are still not working - the
VersionMismatchException persists.
One thing that I've noticed is that the HttpConnector sets
the response
almost identically to the response returned during a direct
service call,
but the HttpSoapConnector's response is significantly
different (even after
the addition of the SOAPAction). Is there a reason why this
is the case? I
think that our server is looking for some other information
in the header to
be echoed back - and as its not finding that information its
throwing an
error.
/jonathan
-----Original Message-----
From: Guillaume Nodet [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 21, 2005 1:56 AM
To: [email protected]
Subject: Re: [servicemix-user] Problems invoking a web
service with SOAP
I have modified the HttpSoapInOutBinding component to set
an empty
SOAPAction header.
Cheers,
Guillaume Nodet
[EMAIL PROTECTED] wrote:
Guillaume,
Good news - the data being returned from the SaajComponent
looks correct
now; the "d" namespace is included.
But...and there's always a but...I am seeing another
issue with the
HttpSoapConnector. On the return, the following
exception is
being thrown by
the client:
Exception in thread "main"
com.idoox.soap.VersionMismatchException: Unable
to read server response. Server returned status
code: 200 (OK)
(Content-type:text/xml; charset=UTF-8) Incoming message is
not SOAP 1.1 nor
SOAP 1.2
at
com.systinet.wasp.soap.MessageSourceImpl.init(MessageSourceIm
pl.java:203)
at
com.systinet.wasp.soap.MessageSourceFactoryImpl.getMessageSou
rce(MessageSour
ceFactoryImpl.java:36)
at
com.systinet.wasp.client.XMLInvocationHelperImpl._receive(XML
InvocationHelpe
rImpl.java:664)
at
com.systinet.wasp.client.XMLInvocationHelperImpl._receive(XML
InvocationHelpe
rImpl.java:617)
at
com.systinet.wasp.client.XMLInvocationHelperImpl._call(XMLInv
ocationHelperIm
pl.java:145)
at
com.systinet.wasp.client.XMLInvocationHelperImpl.call(XMLInvo
cationHelperImp
l.java:77)
at
org.systinet.wasp.client.XMLInvocationHelper.call(XMLInvocati
onHelper.java:1
8)
at
com.systinet.wasp.rpc.WaspCallImpl.invoke(WaspCallImpl.java:492)
at
com.systinet.wasp.rpc.WaspCallImpl.invoke(WaspCallImpl.java:450)
at
com.systinet.wasp.client.ClientProxy._invoke(ClientProxy
.java:456)
at
com.systinet.wasp.client.ClientProxy.invoke(ClientProxy.
java:109)
at $Proxy63.getPerson(Unknown Source)
at
com.cexp.ws.testclient.TestClient.main(TestClient.java:40)
This looked suspicious, so I looked at the Http response
traffic for the bus
(HttpSoapConnector -> SaajConnector) mediated call:
HTTP/1.1 200 OK
Date: Wed, 21 Dec 2005 00:40:27 GMT
Server: Jetty/5.1.6 (Linux/2.4.21-37.ELsmp i386
java/1.5.0_05
Connection: close
Content-Type: text/xml; charset=UTF-8
<?xml version='1.0' encoding='UTF-8'?>
<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><wn2:getPersonResponse
xmlns:wn2="http://systinet.com/wsdl/com/cexp/ws/test/"
xmlns="http://www.w3.org/2000/xmlns/"
xmlns="http://www.w3.org/2000/xmlns/"
xmlns="http://www.w3.org/2000/xmlns/"
xmlns="http://www.w3.org/2000/xmlns/"
xmlns="http://www.w3.org/2000/xmlns/"
xmlns:d="http://www.w3.org/2001/XMLSchema"
xmlns:e="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wn0="http://idoox.com/interface"
xmlns:wn1="http://systinet.com/soap-jta/"
xmlns:wn2="http://systinet.com/wsdl/com/cexp/ws/test/">
<wn2:response
xmlns:wn2="http://systinet.com/wsdl/com/cexp/ws/test/"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
i:type="wn2:Person">
<wn2:description
xmlns:wn2="http://systinet.com/wsdl/com/cexp/ws/test/"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
i:type="d:string">Desktop customizer
(1135125628107)</wn2:description>
<wn2:firstName
xmlns:wn2="http://systinet.com/wsdl/com/cexp/ws/test/"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
i:type="d:string">Jonathan</wn2:firstName>
<wn2:lastName
xmlns:wn2="http://systinet.com/wsdl/com/cexp/ws/test/"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
i:type="d:string">Edwards</wn2:lastName>
</wn2:response>
</wn2:getPersonResponse>
</soap:Body>
</soap:Envelope>
Sure enough, there is no SOAPAction. The Http response
traffic from the
direct web service call looks like this:
HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
X-Powered-By: Servlet 2.4; JBoss-4.0.3SP1 (build:
CVSTag=JBoss_4_0_3_SP1
date=200510231054)/Tomcat-5.5
Server: Systinet Server for Java/6.0 (Java/1.5.0_05;
Linux/2.4.21-37.ELsmp;
build SSJ-6.0-20050817-0016)
SOAPAction: ""
X-WASP-Message-ID: 14e-KvQaIwFQW/q/c5IV2rT9bA==
Content-Type: text/xml;charset=UTF-8
Date: Wed, 21 Dec 2005 00:55:51 GMT
Connection: close
<?xml version="1.0" encoding="UTF-8"?>
<e:Envelope
xmlns:e="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:d="http://www.w3.org/2001/XMLSchema"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"
xmlns:wn0="http://idoox.com/interface"
xmlns:wn1="http://systinet.com/soap-jta/"
xmlns:wn2="http://systinet.com/wsdl/com/cexp/ws/test/">
<e:Body>
<wn2:getPersonResponse>
<wn2:response i:type="wn2:Person">
<wn2:description i:type="d:string">Desktop customizer
(1135126551853)</wn2:description>
<wn2:firstName
i:type="d:string">Jonathan</wn2:firstName>
<wn2:lastName i:type="d:string">Edwards</wn2:lastName>
</wn2:response>
</wn2:getPersonResponse>
</e:Body>
</e:Envelope>
I think that we are almost there. The issue would now seem
to be with the
HttpSoapConnector or the HttpSoapInOutBinding. I think
that the only
modification needs to be altering this component
to set the
HttpResponse
header item SOAPAction="".
Please let me know your thoughts.
/jonathan