axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gopal Patwa" <gopalpa...@gmail.com>
Subject Re: unable to get soap header in Axis2
Date Mon, 03 Apr 2006 06:27:43 GMT
Anybody from development team ??

why my soap:header are not appearing on browser when I try to view from
http://localhost:8080/axis2/services/keystone?wsdl even it is define in my
wsdl

Due to this problem my BPEL process is unable to send ws-addressing headers

this output from browser, does Axis2 remove soap:header

<?xml version="1.0" encoding="UTF-8"?>
<definitions name="keystone"
targetNamespace="http://org.apache.axis2/"
xmlns:tns="http://org.apache.axis2/"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
xmlns:ns1="http://org.apache.axis2/xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
  <types>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://schemas.xmlsoap.org/wsdl/"
xmlns="http://www.w3.org/2001/XMLSchema">
            <import
namespace="http://schemas.xmlsoap.org/ws/2004/08/addressing"
schemaLocation="http://schemas.xmlsoap.org/ws/2004/08/addressing"/>
        </xs:schema>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
targetNamespace="http://org.apache.axis2/xsd"
xmlns="http://www.w3.org/2001/XMLSchema">
               <xs:complexType name="echoAsyncRequest">
                    <xs:sequence>
                        <xs:element name="param1" type="xs:string"/>

                    </xs:sequence>
               </xs:complexType>
               <xs:complexType name="echoAsyncResponse">
                    <xs:sequence>
                        <xs:element name="return" type="xs:string"/>
                    </xs:sequence>
               </xs:complexType>
            <xs:element name="EchoAsyncRequest" type="ns1:echoAsyncRequest"/>
            <xs:element name="EchoAsyncResponse" type="ns1:echoAsyncResponse"/>
        </xs:schema>

  </types>
  <message name="ContinueHeader">
    <part name="RelatesTo" element="wsa:RelatesTo"/>
  </message>
  <message name="StartHeader">
    <part name="MessageID" element="wsa:MessageID"/>
    <part name="ReplyTo" element="wsa:ReplyTo"/>
  </message>
  <message name="echoAsyncRequestMessage">

    <part name="part1" element="ns1:EchoAsyncRequest"/>
  </message>
  <message name="echoAsyncResponseMessage">
    <part name="part2" element="ns1:EchoAsyncResponse"/>
  </message>
  <portType name="keystonePortCallBack">
    <operation name="onResult">
      <input message="tns:echoAsyncResponseMessage"/>
    </operation>

  </portType>
  <portType name="keystonePort">
    <operation name="echoAsync">
      <input message="tns:echoAsyncRequestMessage"/>
    </operation>
  </portType>
  <binding name="keystoneCallBackBinding" type="tns:keystonePortCallBack">
    <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="onResult">

      <soap:operation soapAction="onResult" style="document"/>
      <input>
        <soap:body use="literal" namespace="http://org.apache.axis2/"/>
      </input>
    </operation>
  </binding>
  <binding name="keystoneBinding" type="tns:keystonePort">
    <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
    <operation name="echoAsync">

      <soap:operation soapAction="echoAsync" style="document"/>
      <input>
        <soap:body use="literal" namespace="http://org.apache.axis2/"/>
      </input>
    </operation>
  </binding>
  <service name="keystone">
    <port name="keystonePort0" binding="tns:keystoneBinding">
      <soap:address location="http://localhost:8080/axis2/services/keystone"/>

    </port>
  </service>
  <service name="keystoneCallBack">
    <port name="keystonePort0" binding="tns:keystoneBinding">
      <soap:address location="http://localhost:8080/axis2/services/keystone"/>
    </port>
  </service>

</definitions>



On 3/31/06, Gopal Patwa <gopalpatwa@gmail.com> wrote:
>
> Hi,
>
> I have custom wsdl with just an echo service which contain soap header as
> input for action but when I view my wsdl from browser it does not show up
> the soap header part??
>
> Any help ??, let me if anything wrong in wsdl it self
>
> Thanks
> Gopal
>
> my wsdl file
>
> <?xml version="1.0" encoding="UTF-8"?>
> <definitions name="keystone" targetNamespace="http://org.apache.axis2/"
> xmlns:tns="http://org.apache.axis2/"
>     xmlns:ns1="http://org.apache.axis2/xsd" xmlns:xs="
> http://www.w3.org/2001/XMLSchema"
>     xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="
> http://schemas.xmlsoap.org/wsdl/"
>     xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
>     xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
>
>     <types>
>         <xs:schema attributeFormDefault="qualified"
> elementFormDefault="qualified"
>         targetNamespace="http://schemas.xmlsoap.org/wsdl/" xmlns="
> http://www.w3.org/2001/XMLSchema">
>             <import namespace="
> http://schemas.xmlsoap.org/ws/2004/08/addressing"
>                 schemaLocation="
> http://schemas.xmlsoap.org/ws/2004/08/addressing" />
>         </xs:schema>
>
>         <xs:schema elementFormDefault="qualified" xmlns="
> http://www.w3.org/2001/XMLSchema"
>                    targetNamespace="http://org.apache.axis2/xsd">
>                <xs:complexType name="echoAsyncRequest">
>                     <xs:sequence>
>                         <xs:element name="param1" type="xs:string"/>
>                     </xs:sequence>
>                </xs:complexType>
>                <xs:complexType name="echoAsyncResponse">
>                     <xs:sequence>
>                         <xs:element name="return" type="xs:string"/>
>                     </xs:sequence>
>                </xs:complexType>
>             <xs:element name="EchoAsyncRequest"
> type="ns1:echoAsyncRequest"/>
>             <xs:element name="EchoAsyncResponse"
> type="ns1:echoAsyncResponse"/>
>         </xs:schema>
>
>     </types>
>
>     <message name="StartHeader">
>         <part name="MessageID" element="wsa:MessageID" />
>         <part name="ReplyTo" element="wsa:ReplyTo" />
>     </message>
>
>       <message name="ContinueHeader">
>         <part name="RelatesTo" element="wsa:RelatesTo"/>
>       </message>
>
>       <message name="echoAsyncRequestMessage">
>         <part name="part1" element="ns1:EchoAsyncRequest"/>
>       </message>
>       <message name="echoAsyncResponseMessage">
>         <part name="part2" element="ns1:EchoAsyncResponse"/>
>       </message>
>
>     <portType name="keystonePort">
>         <operation name="echoAsync">
>             <input message="tns:echoAsyncRequestMessage" />
>         </operation>
>     </portType>
>     <portType name="keystonePortCallBack">
>         <operation name="onResult">
>             <input message="tns:echoAsyncResponseMessage" />
>         </operation>
>     </portType>
>
>       <plnk:partnerLinkType name="keystone">
>         <plnk:role name="keystoneServiceProvider">
>           <plnk:portType name="tns:keystone"/>
>         </plnk:role>
>         <plnk:role name="keystoneServiceRequester">
>           <plnk:portType name="tns:keystoneCallBack"/>
>         </plnk:role>
>       </plnk:partnerLinkType>
>
>     <binding name="keystoneBinding" type="tns:keystonePort">
>         <soap:binding style="document" transport="
> http://schemas.xmlsoap.org/soap/http" />
>         <operation name="echoAsync">
>             <soap:operation soapAction="echoAsync" style="document"/>
>             <input>
>                 <soap:body use="literal"/>
>                 <soap:header message="tns:StartHeader"
>                              part="MessageID"
>                              use="literal"/>
>                 <soap:header message="tns:StartHeader"
>                              part="ReplyTo"
>                              use="literal"/>
>             </input>
>         </operation>
>     </binding>
>
>     <binding name="keystoneCallBackBinding"
> type="tns:keystonePortCallBack">
>         <soap:binding style="document" transport="
> http://schemas.xmlsoap.org/soap/http" />
>         <operation name="onResult">
>             <soap:operation soapAction="onResult" style="document"/>
>             <input>
>                 <soap:body use="literal"/>
>                 <soap:header message="tns:ContinueHeader"
>                              part="RelatesTo"
>                              use="literal"/>
>             </input>
>         </operation>
>     </binding>
>
>     <service name="keystone">
>         <port name="keystonePort0" binding="tns:keystoneBinding">
>             <soap:address location="
> http://localhost:8080/axis2/services/keystone"/>
>     </port>
>   </service>
>
>   <service name="keystoneCallBack">
>     <port name="keystonePort0CallBack"
> binding="tns:keystoneCallBackBinding">
>          <soap:address location="http://set.by.caller"/>
>     </port>
>   </service>
>
> </definitions>
>
>

Mime
View raw message