You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by amit_ak <am...@mindtree.com> on 2011/01/24 13:26:18 UTC

Null web service Response

Hi,
We are using CXF for consuming web service. we are getting NULL response
because of missing URN in response. Problem is with <Row> tag, it needs to
be <aw:Row> to make integration work. 

<soapenv:Envelope 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">
	<soapenv:Body>
		<aw:Import
		
xsi:noNamespaceSchemaLocation="C:\Users\Administrator\Documents\xyz\PCC_WS_std_out.xsd"
		
xmlns:aw="http://businessobjects.com/service/RTJob_DMO_PCC_WS_STD/output">
			<Row>
				<STREET1>333 N MERIDIAN AVE</STREET1>				
				<CITY>OKLAHOMA CITY</CITY>
				<STATE>OKLAHOMA</STATE>
				
			</Row>
		</aw:Import>
	</soapenv:Body>
</soapenv:Envelope>

Is there any option avaialble in wsdl2java so that it ignore missing URN and
it will help us to get proper response.
-- 
View this message in context: http://cxf.547215.n5.nabble.com/Null-web-service-Response-tp3354556p3354556.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Null web service Response

Posted by Daniel Kulp <dk...@apache.org>.
On Monday 24 January 2011 10:56:43 am amit_ak wrote:
> Hi,
> 
> The Web services which we are trying to access is provided by third party.
> We tried by adding "elementFormDefault="unqualified" " to the local copy of
> the WSDL and generating the client stub. But the problem still persists.

It's actually the other way around.  If you need it namespace qualified, you 
need to add elementFormDefault="qualified".


Dan


> I have attached the WSDL here. We are interested only with
> "DMO_WS_DEDUP/input", "DMO_WS_DEDUP/output", "DMO_WS_STD/input" and
> "DMO_WS_STD/output". For these we added the
> "elementFormDefault="unqualified".
> 
> WSDL :  http://cxf.547215.n5.nabble.com/file/n3354868/Services.wsdl
> Services.wsdl
> 
> Is there any other changes to be made? Is there any other way to resolve
> this?

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog

Re: Null web service Response

Posted by amit_ak <am...@mindtree.com>.
Hi, 

The Web services which we are trying to access is provided by third party.
We tried by adding "elementFormDefault="unqualified" " to the local copy of
the WSDL and generating the client stub. But the problem still persists. 

I have attached the WSDL here. We are interested only with
"DMO_WS_DEDUP/input", "DMO_WS_DEDUP/output", "DMO_WS_STD/input" and
"DMO_WS_STD/output". For these we added the 
"elementFormDefault="unqualified". 

WSDL :  http://cxf.547215.n5.nabble.com/file/n3354868/Services.wsdl
Services.wsdl 

Is there any other changes to be made? Is there any other way to resolve
this? 


-- 
View this message in context: http://cxf.547215.n5.nabble.com/Null-web-service-Response-tp3354556p3354868.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: Null web service Response

Posted by Freeman Fang <fr...@gmail.com>.
Hi,

You can change your wsdl schema part, using  
elementFormDefault="unqualified", then it should work.

Freeman
On 2011-1-24, at 下午8:26, amit_ak wrote:

>
> Hi,
> We are using CXF for consuming web service. we are getting NULL  
> response
> because of missing URN in response. Problem is with <Row> tag, it  
> needs to
> be <aw:Row> to make integration work.
>
> <soapenv:Envelope 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">
> 	<soapenv:Body>
> 		<aw:Import
> 		
> xsi:noNamespaceSchemaLocation="C:\Users\Administrator\Documents\xyz 
> \PCC_WS_std_out.xsd"
> 		
> xmlns:aw="http://businessobjects.com/service/RTJob_DMO_PCC_WS_STD/output 
> ">
> 			<Row>
> 				<STREET1>333 N MERIDIAN AVE</STREET1>				
> 				<CITY>OKLAHOMA CITY</CITY>
> 				<STATE>OKLAHOMA</STATE>
> 				
> 			</Row>
> 		</aw:Import>
> 	</soapenv:Body>
> </soapenv:Envelope>
>
> Is there any option avaialble in wsdl2java so that it ignore missing  
> URN and
> it will help us to get proper response.
> -- 
> View this message in context: http://cxf.547215.n5.nabble.com/Null-web-service-Response-tp3354556p3354556.html
> Sent from the cxf-user mailing list archive at Nabble.com.


-- 
Freeman Fang

------------------------

FuseSource: http://fusesource.com
blog: http://freemanfang.blogspot.com
twitter: http://twitter.com/freemanfang
Apache Servicemix:http://servicemix.apache.org
Apache Cxf: http://cxf.apache.org
Apache Karaf: http://karaf.apache.org
Apache Felix: http://felix.apache.org