You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Xinjun Chen <xj...@gmail.com> on 2006/05/28 10:24:40 UTC

null Address problem

Hi Axis fans,

I have developed a RPC style web service which contains an operation to
create a WSRF resource. The return is an EndpointReferenceType object. The
SOAP response is as the follows.

 <soapenv:Body>
  <createResourceResponse
   xmlns="http://soardsgrid/component/primitive/PrimitiveComponent.wsdl">
   <createResourceReturn>
    <wsa:Address>

http://my-ip-address:8080/wsrf/services/soardsgrid/component/primitive/PrimitiveComponent
    </wsa:Address>
    <wsa:ReferenceProperties>
     <PrimitiveComponentResourceKey>
      949587
     </PrimitiveComponentResourceKey>
    </wsa:ReferenceProperties>
    <wsa:ReferenceParameters />
   </createResourceReturn>
  </createResourceResponse>
 </soapenv:Body>

The following code get the return as EndpointReferenceType object:

            Object ret = call.invoke(new Object[]{});
            EndpointReferenceType componentEPR = (EndpointReferenceType)ret;

However, only the ReferenceProperties is captured in the
EndpointReferenceType object. The componentEPR.getAddress returns null. As
can be seen, the <Address> is not null at all.

Could you point me what I have missed out?

Regards,
Xinjun