Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Use of SoapAction Attribute ?

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

In wsdl if we have operations more than one.Then its mandatory to use soapAction attribute under binding tag.

For example i am giving the below example:


<wsdl:binding name="GAT__InboxSoapBinding" type="s0:GAT__InboxPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdlperation name="OpCreate">
<soapperation soapAction="urn:GAT__Inbox/OpCreate" style="document"/>
<wsdl:input>
<soap:header message="s0:ARAuthenticate" part="header" use="literal">
</soap:header>
<soap:body use="literal"/>
</wsdl:input>
<wsdlutput>
<soap:body use="literal"/>
</wsdlutput>
</wsdlperation>
<wsdlperation name="Monitor">
<soapperation soapAction="urn:GAT__Inbox/Monitor" style="document"/>
<wsdl:input>
<soap:header message="s0:ARAuthenticate" part="header" use="literal">
</soap:header>
<soap:body use="literal"/>
</wsdl:input>
<wsdlutput>
<soap:body use="literal"/>
</wsdlutput>
</wsdlperation>
</wsdl:binding>

With Regards,
Rama Krishna.Y
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That shouldn't be the case. In the WSDL omitting the soapAction attribute is equivalent to setting soapAction="". It means that the SOAPAction HTTP header will be empty. The WS-I Basic Profile requires that a SOAP envelope inside an HTTP POST request is accompanied by an HTTP SOAPAction header - however it permits the SOAPAction header to be empty. The soapAction attribute simply specifies the content of the SOAPAction HTTP header. The content of the SOAPAction HTTP header is supposed to communicate the "intent" (e.g. operation) of the SOAP envelope, so that proxies and firewalls can act on it without looking into the XML SOAP envelope.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic