cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Kulp <dk...@apache.org>
Subject Re: Service differences when upgrading to 2.4.1
Date Thu, 01 Jan 1970 00:00:00 GMT
On Friday, July 08, 2011 8:54:37 AM David Hoffer wrote:
> Here is what CXF receives from the PHP client:
> 
> INFO   | jvm 1    | 2011/07/08 04:22:03 | Payload: <?xml version="1.0"
> encoding="ISO-8859-1"?><SOAP-ENV:Envelope
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> xmlns:ns1090="http://tempuri.org"><SOAP-ENV:Body><calc
> xmlns=""><WebInput xmlns=""><Score xmlns="">750</Score><Value
> xmlns="">400000</Value><Amount xmlns="">300000</Amount><State
> xmlns="">PA</State></WebInput></calc></SOAP-ENV:Body></SOAP-ENV:Envelope>
> 
> It has a namespace but it's set to "", I'd like to configure the
> server to work with that.

Yea, that would not be a valid SOAP message.

You would likely need to use the transform feature Sergey mentioned to 
transform the incoming soap message into a valid one.

Dan





> 
> -Dave
> 
> On Fri, Jul 8, 2011 at 8:47 AM, Daniel Kulp <dkulp@apache.org> wrote:
> > On Friday, July 08, 2011 8:35:29 AM David Hoffer wrote:
> >> I have some existing services developed and deployed with 2.1.2 using
> >> the java first annotation approach (JAX-WS).  After upgrading to 2.4.1
> >> existing PHP clients receive the following error:
> >> 
> >> INFO   | jvm 1    | 2011/07/08 04:22:03 | WARNING: Interceptor for
> >> {http://some_namespace/}IAPIService#{http://some_namespace/}calc has
> >> thrown exception, unwinding now
> >> INFO   | jvm 1    | 2011/07/08 04:22:03 | org.apache.cxf.interceptor.
> >> Fault: Unexpected wrapper element calc found.   Expected
> >> {http://some_namespace/}calc.
> >> 
> >> However Java CXF clients work just fine.  It seems that the PHP client
> >> (which code I did not write) is not using any namespace.  How can I
> >> configure CXF 2.4.1 to behave so it can work with existing PHP code?
> >> I have no need for namespaces so if disabling that would solve the
> >> problem that would be fine...how do I do that?
> > 
> > Sounds like the php client isn't generating a valid soap message.   Per
> > SOAP spec, the children of the soap:Body must be namespace qualified.  
> > Thus, if it's just sending "calc", it's definitely not doing something
> > correctly.
> > 
> > --
> > Daniel Kulp
> > dkulp@apache.org
> > http://dankulp.com/blog
> > Talend - http://www.talend.com
-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com

Mime
View raw message