Generated SOAP client proxy problem

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Generated SOAP client proxy problem

zgrega
Hi,

After adding some new methods to the web service, I had to update jaxws SOAP client. I have noticed that with a new client one of old methods doesn't work and returns null.

I have turned on http dump via
"com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump", "true"
and SOAP envelope which arrives on the client it is OK.

In a proxy code this envelope is not correctly transformed into java object and returned value from my API method is null.

I have checked the same method with an old client and it works OK.

I am using the following:

/**
 * This class was generated by the JAX-WS RI.
 * JAX-WS RI 2.2.8
 * Generated source version: 2.2
 *
 */

to generate my proxy classes.

Any clue how to fix this?

Best regards,
Grega
Reply | Threaded
Open this post in threaded view
|

Re: Generated SOAP client proxy problem

zgrega
I have updated both client and server side to the latest version of metro.

<!-- Generated by JAX-WS RI at http://jax-ws.dev.java.net. RI's version is Metro/2.3 (tags/2.3-7528; 2013-04-29T19:34:10+0000) JAXWS-RI/2.2.8 JAXWS/2.2 svn-revision#unknown.

And still the same problem.
Reply | Threaded
Open this post in threaded view
|

Re: Generated SOAP client proxy problem

zgrega
Failed response method is returned ok in SOAP

<?xml version="1.0" encoding="UTF-8"?>
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
   <S:Body>
      <ns2:getTsResponse xmlns:ns2="http://XXX.eu/" xmlns:ns3="http://YYYY.eu">
         <sTsResult>
            <totalNumOfTs>3</totalNumOfTs>
            <sTs>
               <T>
                  <id>3744290103</id>
                  <date>2015-04-07T15:36:01+02:00</date>
                  <s>
                     <M>aaaaa</M>
                     <sx>42.0</sx>
                  <s/>
                  <rEC>1</rEC>
               </T>
               <T>
                  <id>3744390103</id>
                  <date>2015-04-07T15:36:01+02:00</date>
                  <s>
                     <M>bbbbbb</M>
                     <sx>44.0</sx>
                  <s/>
                  <rEC>1</rEC>
               </T>
               <T>
                  <id>3744490103</id>
                  <date>2015-04-07T15:36:01+02:00</date>
                  <s>
                     <M>ccccc</M>
                     <sx>43.0</sx>
                  <s/>
                  <rEC>2</rEC>
               </T>
            </sTs>
         </sTsResult>
      </ns2:getTsResponse>
   </S:Body>
</S:Envelope>


but sTs object is null in java code after proxy / port call.