Well, what does the schema look like?    Does the message actually match the 
schema?   Normally, this type of issue occurs when the message doesn't match 
the schema.   In particular, the loginResponse element is properly qualified, 
but should the "result" element and other elements at that level be qualified 
or unqualified?

Also, what version of CXF are you using.   Make sure you are trying with 
2.2.7.


Dan


On Tuesday 06 April 2010 6:31:04 am Sosie wrote:
> Hi,
> I have created java code with wsdl2java from wsdl.
> When i send a request i got a response message but without corect
> namespace. Here is a example:
> <SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";>
>    <SOAP-ENV:Body>
>       <loginResponse xmlns="urn:TestSOAP">
>          <result>
>             <id xmlns="">22</id>
>             <message xmlns=""/>
>             <isSuccess xmlns="">1</isSuccess>
>          </result>
>          <login_user_data>
>             <user xmlns="">
>                <user_title>Bc.</user_title>
>                <user_name>Test</user_name>
>                <user_last_name>User</user_last_name>
>                <user_nick_name>nick</user_nick_name>
>                <user_birth_date>1980-06-10</user_birth_date>
>                <user_bank_account>1234567890</user_bank_account>
>                <user_bank_code>1234</user_bank_code>
>                <pref_lang>1</pref_lang>
>                <contacts>
>                   [email protected]
>                   <phone>+1234567890</phone>
>                </contacts>
>                <addresses>
>                   <address>
>                      <address_type>permanent</address_type>
>                      <address_street>Street 1</address_street>
>                      <address_city>City 1</address_city>
>                      <address_zip>12345</address_zip>
>                      <address_country>Country 1</address_country>
>                   </address>
>                   <address>
>                      <address_type>post</address_type>
>                      <address_street>test_street</address_street>
>                      <address_city>test_country</address_city>
>                      <address_zip>10101</address_zip>
>                      <address_country>Country 2</address_country>
>                   </address>
>                </addresses>
>             </user>
>             <basic_data xmlns="">
>                <type>6</type>
>                <status>5</status>
>                <konto>19010.53</konto>
>                <first_log>0</first_log>
>             </basic_data>
>             <flags xmlns="">
>                <club>2</club>
>                <sms>0</sms>
>             </flags>
>          </login_user_data>
>          <nextActiveGridField>H1</nextActiveGridField>
>       </loginResponse>
>    </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>
> 
> When i call webservice client from java, it returns empty objects [null]
> (because response don't have urn prefix).Exist some solution to read this
> response corectly?
> Thanx.

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to