• 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

Question on Java to WSDL mapping

 
Ranch Hand
Posts: 115
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
There’s no place like 127.0.0.1. But I'll always remember this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic