Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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..!!

 
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
 
Lookout! Runaway whale! Hide behind this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic