• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to access javax.xml.ws.Holder from java webservice client?

 
Sravani cg
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Please guide me to rectify below issue?

I have Created Webservice Client(From RAD 7.5) and able to connect webservice method. But when i am getting response vlues(javax.xml.ws.Holder) I am receiving null.

Method Signature:

object.method(String a, String b, Holder<Response> res)

When i am trying to get status(res.value.getStatus()) i am getting NULL.

Thanks in Advance..!!

 
Sujeeth Pakala
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1. Is webservice is responding correctly ? Best is to test the webservice from any tool, I recommend soapUI.
2. Debug and see what is in "res.value"

 
Sravani cg
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sujeeth,

Thanks for your reply..!!

1. I am able to connect webservice properly. I have tested same in SOAP UI and got expected result.
2. I got "res.value " is null. Could you please tell me why i am receiving null.
 
Sujeeth Pakala
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK. Now, this depends on the type of wrapping (doc/literal/wrapped or doc/literal/unwrapped) style you defined in the service client.

I suspect you are using settings in annotations for doc/literal/unwrapped and using Holder for response.

 
Sravani cg
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have used annotation as follows.

@WebParam(name = "response", targetNamespace = "http://com.test/ex/client", mode = WebParam.Mode.OUT)
Holder<Response> response
 
Sujeeth Pakala
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How many parts are there in the wsdl messages ?
 
Sravani cg
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its having only one part in the wsdl message as follows.

<WL5G3N0:message name="analyzeRiskForCustomerResponse">
<WL5G3N0:part element="WL5G3N1:analyzeRiskForCustomerResponse" name="parameters"/>
</WL5G3N0:message>
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!