• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Question on Java to WSDL mapping

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

According to the WSDL 1.1 specs,

2.4.1 One-way Operation
The grammar for a one-way operation is:

<wsdl efinitions .... > <wsdl ortType .... > *
<wsdl peration name="nmtoken">
<wsdl:input name="nmtoken"? message="qname"/>
</wsdl peration>
</wsdl ortType >
</wsdl efinitions>

2.4.2 Request-response Operation
The grammar for a request-response operation is:

<wsdl efinitions .... >
<wsdl ortType .... > *
<wsdl peration name="nmtoken" parameterOrder="nmtokens">
<wsdl:input name="nmtoken"? message="qname"/>
<wsdl utput name="nmtoken"? message="qname"/>
<wsdl:fault name="nmtoken" message="qname"/>*
</wsdl peration>
</wsdl ortType >
</wsdl efinitions>


If I have a JSE whose endpoint interface includes a void method that accepts an input argument and throws an application exception, how will the WSDL file generated by JAX-RPC looks like?

Since u cannot have just input and faults (without output) in a in a request-response wsdl peration definition i.e,

<wsdl efinitions .... >
<wsdl ortType .... > *
<wsdl peration name="nmtoken" parameterOrder="nmtokens">
<wsdl:input name="nmtoken"? message="qname"/>
<wsdl:fault name="nmtoken" message="qname"/>*
</wsdl peration>
</wsdl ortType >
</wsdl efinitions>

Please help!
 
We can walk to school together. And we can both read this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic