Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!
  • 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

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>
 
Would you like to try a free sample? Today we are featuring tiny ads:
Garden Master Course kickstarter
https://coderanch.com/t/754577/Garden-Master-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic