Looks like this is a bug in ADB indeed. Could you please raise a JIRA on
this.

Thanks,
Keith.

On Thu, Oct 16, 2008 at 8:34 PM, Harm de Laat <[EMAIL PROTECTED]> wrote:

> Thanks for your suggestion. However, what should we change to make our
> webservice client work?
> I already,  tried changing the line you suggested to:
>
> <s:element minOccurs="0" maxOccurs="1" name="Referentienummer"
> type="s:string" />
>
> or to:
>
> <s:element minOccurs="0" maxOccurs="1" form="qualified"
> name="Referentienummer" type="s:string" />
>
> But neither seem to work.
>
> Any suggestions?
>
> Thanks, Harm!
>
>
>
> On Thu, Oct 16, 2008 at 3:41 PM, Jeff Greif <[EMAIL PROTECTED]>wrote:
>
>> The problem is form="unqualified" in this line of the wsdl:
>>
>>           <s:element minOccurs="0" maxOccurs="1" form="unqualified"
>> name="Referentienummer" type="s:string" />
>>
>> That is, that element is supposed to be in the null namespace, not in
>> ns3, but when axis/ADB sets the default namespace to a non-null value
>> on its parent in the request, it does not unset it, using xmlns="" on
>> the Referntienummer element.
>>
>> Jeff
>>
>> On Thu, Oct 16, 2008 at 5:23 AM, Harm de Laat <[EMAIL PROTECTED]> wrote:
>> > In the mean time we have figured out that XMLBeans binding does not
>> suffer
>> > from the same problems.
>> > So it seems it has something to do with ADB binding.
>> >
>> >
>> > On Wed, Oct 15, 2008 at 11:35 PM, Harm de Laat <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Anybody has an idea on this. We're quite stuck on our project because
>> of
>> >> this.
>> >>
>> >> Kind regards,
>> >>
>> >> Harm de Laat
>> >>
>> >>
>> >> On Tue, Oct 14, 2008 at 5:52 PM, Harm de Laat <[EMAIL PROTECTED]> wrote:
>> >>>
>> >>> The message generated by SOAPUI looks like:
>> >>>
>> >>> <soapenv:Envelope
>> >>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
>> >>> xmlns:mdc="http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/";
>> >>> xmlns:sch="
>> http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb
>> ">
>> >>>    <soapenv:Header/>
>> >>>    <soapenv:Body>
>> >>>       <mdc:GetOrderDetails>
>> >>>          <sch:OrderInfo>
>> >>>             <Referentienummer>135756.010</Referentienummer>
>> >>>          </sch:OrderInfo>
>> >>>       </mdc:GetOrderDetails>
>> >>>    </soapenv:Body>
>> >>> </soapenv:Envelope>
>> >>>
>> >>> This works out of the box.
>> >>>
>> >>> The difference seems to be that SOAPUI declares all namespaces in the
>> >>> Envelope tag, and Axis does not.
>> >>> Also the Axis generated message does not include a namespace(prefix)
>> on
>> >>> the OrderInfo tag.
>> >>>
>> >>> No matter what I try the Axis generated client does not work.
>> >>>
>> >>> Any idea?
>> >>>
>> >>> Thanks for your help,
>> >>>
>> >>> Harm!
>> >>>
>> >>>
>> >>> On Tue, Oct 14, 2008 at 3:57 PM, keith chapman <
>> [EMAIL PROTECTED]>
>> >>> wrote:
>> >>>>
>> >>>> Looking at the WSDL it looks like a correct message should be of the
>> >>>> form.
>> >>>>
>> >>>> <soapenv:Envelope
>> >>>> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
>> >>>>    <soapenv:Body>
>> >>>>       <ns3:GetOrderDetails
>> >>>> xmlns:ns3="http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/";>
>> >>>>          <n2:OrderInfo
>> >>>> xmlns:n2="
>> http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb
>> ">
>> >>>>             <ns3:Referentienummer>123456.123</ns3:Referentienummer>
>> >>>>          </n2:OrderInfo>
>> >>>>       </ns3:GetOrderDetails>
>> >>>>    </soapenv:Body>
>> >>>> </soapenv:Envelope>
>> >>>>
>> >>>> Could you a sample message generated using SOAPUI.
>> >>>>
>> >>>> Thanks,
>> >>>> Keith.
>> >>>>
>> >>>>
>> >>>> On Tue, Oct 14, 2008 at 6:52 PM, Harm de Laat <[EMAIL PROTECTED]>
>> wrote:
>> >>>>>
>> >>>>> Here is the complete WSDL file (I just commented out the IP address
>> for
>> >>>>> the service).
>> >>>>>
>> >>>>> What may be worth of mentioning is that I tried using SOAPUI, which
>> >>>>> worked instantly with this specific WSDL.
>> >>>>>
>> >>>>>
>> >>>>> <?xml version="1.0" encoding="utf-8"?>
>> >>>>> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/
>> "
>> >>>>> xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/";
>> >>>>> xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/";
>> >>>>> xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
>> >>>>> xmlns:tns="http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/";
>> >>>>> xmlns:s1="
>> http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb
>> "
>> >>>>> xmlns:s="http://www.w3.org/2001/XMLSchema";
>> >>>>> xmlns:s2="
>> http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoResultWeb
>> "
>> >>>>> xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";
>> >>>>> xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
>> >>>>> targetNamespace="
>> http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/";
>> >>>>> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>
>> >>>>>   <wsdl:documentation
>> >>>>> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>BizTalk assembly
>> >>>>> "Sanoma.BizTalk.AdvertentiePortal.MDC, Version=1.0.0.0,
>> Culture=neutral,
>> >>>>> PublicKeyToken=8c063b3a22630ca9" published web
>> service.</wsdl:documentation>
>> >>>>>   <wsdl:types>
>> >>>>>     <s:schema elementFormDefault="qualified"
>> >>>>> targetNamespace="
>> http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/";>
>> >>>>>       <s:import
>> >>>>> namespace="
>> http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb
>> "
>> >>>>> />
>> >>>>>       <s:import
>> >>>>> namespace="
>> http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoResultWeb
>> "
>> >>>>> />
>> >>>>>       <s:element name="GetOrderDetails">
>> >>>>>         <s:complexType>
>> >>>>>           <s:sequence>
>> >>>>>             <s:element minOccurs="0" maxOccurs="1"
>> ref="s1:OrderInfo"
>> >>>>> />
>> >>>>>           </s:sequence>
>> >>>>>         </s:complexType>
>> >>>>>       </s:element>
>> >>>>>       <s:element name="GetOrderDetailsResponse">
>> >>>>>         <s:complexType>
>> >>>>>           <s:sequence>
>> >>>>>             <s:element minOccurs="0" maxOccurs="1"
>> >>>>> ref="s2:OrderInfoResult" />
>> >>>>>           </s:sequence>
>> >>>>>         </s:complexType>
>> >>>>>       </s:element>
>> >>>>>     </s:schema>
>> >>>>>     <s:schema elementFormDefault="qualified"
>> >>>>> targetNamespace="
>> http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb
>> ">
>> >>>>>       <s:element name="OrderInfo">
>> >>>>>         <s:complexType>
>> >>>>>           <s:sequence>
>> >>>>>             <s:element minOccurs="0" maxOccurs="1"
>> form="unqualified"
>> >>>>> name="Referentienummer" type="s:string" />
>> >>>>>           </s:sequence>
>> >>>>>         </s:complexType>
>> >>>>>       </s:element>
>> >>>>>     </s:schema>
>> >>>>>     <s:schema elementFormDefault="qualified"
>> >>>>> targetNamespace="
>> http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoResultWeb
>> ">
>> >>>>>       <s:element name="OrderInfoResult">
>> >>>>>         <s:complexType>
>> >>>>>           <s:sequence>
>> >>>>>             <s:element minOccurs="0" maxOccurs="1"
>> form="unqualified"
>> >>>>> name="Referentienr" type="s:string" />
>> >>>>>             <s:element minOccurs="0" maxOccurs="1"
>> form="unqualified"
>> >>>>> name="NameAdvertiser" type="s:string" />
>> >>>>>             <s:element minOccurs="0" maxOccurs="1"
>> form="unqualified"
>> >>>>> name="TypeOfAd" type="s:string" />
>> >>>>>             <s:element minOccurs="0" maxOccurs="1"
>> form="unqualified"
>> >>>>> name="titleId" type="s:string" />
>> >>>>>             <s:element minOccurs="0" maxOccurs="1"
>> form="unqualified"
>> >>>>> name="editionId" type="s:string" />
>> >>>>>             <s:element minOccurs="0" maxOccurs="1"
>> form="unqualified"
>> >>>>> name="orderStatus" type="s:integer" />
>> >>>>>             <s:element minOccurs="0" maxOccurs="1"
>> form="unqualified"
>> >>>>> name="returnCode" type="s:integer" />
>> >>>>>             <s:element minOccurs="0" maxOccurs="1"
>> form="unqualified"
>> >>>>> name="returnMessage" type="s:string" />
>> >>>>>           </s:sequence>
>> >>>>>         </s:complexType>
>> >>>>>       </s:element>
>> >>>>>     </s:schema>
>> >>>>>   </wsdl:types>
>> >>>>>   <wsdl:message name="GetOrderDetailsSoapIn">
>> >>>>>     <wsdl:part name="parameters" element="tns:GetOrderDetails" />
>> >>>>>   </wsdl:message>
>> >>>>>   <wsdl:message name="GetOrderDetailsSoapOut">
>> >>>>>     <wsdl:part name="parameters"
>> element="tns:GetOrderDetailsResponse"
>> >>>>> />
>> >>>>>   </wsdl:message>
>> >>>>>   <wsdl:portType
>> >>>>> name="WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap">
>> >>>>>     <wsdl:operation name="GetOrderDetails">
>> >>>>>       <wsdl:input message="tns:GetOrderDetailsSoapIn" />
>> >>>>>       <wsdl:output message="tns:GetOrderDetailsSoapOut" />
>> >>>>>     </wsdl:operation>
>> >>>>>   </wsdl:portType>
>> >>>>>   <wsdl:binding
>> >>>>> name="WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap"
>> >>>>> type="tns:WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap">
>> >>>>>     <soap:binding transport="http://schemas.xmlsoap.org/soap/http";
>> />
>> >>>>>     <wsdl:operation name="GetOrderDetails">
>> >>>>>       <soap:operation
>> >>>>> soapAction="
>> http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC/GetOrderDetails
>> "
>> >>>>> style="document" />
>> >>>>>       <wsdl:input>
>> >>>>>         <soap:body use="literal" />
>> >>>>>       </wsdl:input>
>> >>>>>       <wsdl:output>
>> >>>>>         <soap:body use="literal" />
>> >>>>>       </wsdl:output>
>> >>>>>     </wsdl:operation>
>> >>>>>   </wsdl:binding>
>> >>>>>   <wsdl:binding
>> >>>>> name="WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap12"
>> >>>>> type="tns:WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap">
>> >>>>>     <soap12:binding transport="http://schemas.xmlsoap.org/soap/http";
>> />
>> >>>>>     <wsdl:operation name="GetOrderDetails">
>> >>>>>       <soap12:operation
>> >>>>> soapAction="
>> http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC/GetOrderDetails
>> "
>> >>>>> style="document" />
>> >>>>>       <wsdl:input>
>> >>>>>         <soap12:body use="literal" />
>> >>>>>       </wsdl:input>
>> >>>>>       <wsdl:output>
>> >>>>>         <soap12:body use="literal" />
>> >>>>>       </wsdl:output>
>> >>>>>     </wsdl:operation>
>> >>>>>   </wsdl:binding>
>> >>>>>   <wsdl:service
>> name="WebService_Sanoma_BizTalk_AdvertentiePortal_MDC">
>> >>>>>     <wsdl:documentation
>> >>>>> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";>BizTalk assembly
>> >>>>> "Sanoma.BizTalk.AdvertentiePortal.MDC, Version=1.0.0.0,
>> Culture=neutral,
>> >>>>> PublicKeyToken=8c063b3a22630ca9" published web
>> service.</wsdl:documentation>
>> >>>>>     <wsdl:port
>> >>>>> name="WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap"
>> >>>>> binding="tns:WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap">
>> >>>>>       <soap:address
>> >>>>> location="
>> http://x.x.x.x/WebServices/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC.asmx
>> "
>> >>>>> />
>> >>>>>     </wsdl:port>
>> >>>>>     <wsdl:port
>> >>>>> name="WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap12"
>> >>>>> binding="tns:WebService_Sanoma_BizTalk_AdvertentiePortal_MDCSoap12">
>> >>>>>       <soap12:address
>> >>>>> location="
>> http://x.x.x.x/WebServices/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC.asmx
>> "
>> >>>>> />
>> >>>>>     </wsdl:port>
>> >>>>>   </wsdl:service>
>> >>>>> </wsdl:definitions>
>> >>>>>
>> >>>>>
>> >>>>> Thanks,
>> >>>>>
>> >>>>> Harm!
>> >>>>>
>> >>>>>
>> >>>>> On Tue, Oct 14, 2008 at 2:42 PM, keith chapman
>> >>>>> <[EMAIL PROTECTED]> wrote:
>> >>>>>>
>> >>>>>> Could you post the schema section in the WSDL that describes
>> >>>>>> GetOrderDetails. That would give us a clue to whats wrong.
>> >>>>>>
>> >>>>>> Thanks,
>> >>>>>> Keith.
>> >>>>>>
>> >>>>>> On Tue, Oct 14, 2008 at 5:02 PM, Harm de Laat <[EMAIL PROTECTED]>
>> wrote:
>> >>>>>>>
>> >>>>>>> Hi all,
>> >>>>>>>
>> >>>>>>> I'm having great difficulties calling a BizTalk webservice using
>> >>>>>>> axis2 (1.4.1) with ADB.
>> >>>>>>>
>> >>>>>>> I have generated my client using the following command:
>> >>>>>>>
>> >>>>>>> wsdl2java.sh -uri
>> >>>>>>>
>> http://x.x.x.x/WebServices/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC.asmx?WSDL
>> >>>>>>> -p nl.kabisa.sanoma.webservices -d adb -s
>> >>>>>>>
>> >>>>>>> This generates all classes and using my (test)client I get to call
>> >>>>>>> the service. This generates the following SOAP message:
>> >>>>>>>
>> >>>>>>> <soapenv:Envelope
>> >>>>>>> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
>> >>>>>>>    <soapenv:Body>
>> >>>>>>>       <ns3:GetOrderDetails
>> >>>>>>> xmlns:ns3="http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/
>> ">
>> >>>>>>>          <OrderInfo
>> >>>>>>> xmlns="
>> http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb
>> ">
>> >>>>>>>             <Referentienummer>123456.123</Referentienummer>
>> >>>>>>>          </OrderInfo>
>> >>>>>>>       </ns3:GetOrderDetails>
>> >>>>>>>    </soapenv:Body>
>> >>>>>>> </soapenv:Envelope>
>> >>>>>>>
>> >>>>>>> However, this call gets discarded by the BizTalk server. When I
>> >>>>>>> manually modify the soap message to the message below everything
>> is fine.
>> >>>>>>> (Notice the ns2 namespace):
>> >>>>>>>
>> >>>>>>> <soapenv:Envelope
>> >>>>>>> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope";>
>> >>>>>>>    <soapenv:Body>
>> >>>>>>>       <ns3:GetOrderDetails
>> >>>>>>> xmlns:ns3="http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/
>> ">
>> >>>>>>>          <n2:OrderInfo
>> >>>>>>> xmlns:n2="
>> http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb
>> ">
>> >>>>>>>             <Referentienummer>123456.123</Referentienummer>
>> >>>>>>>          </n2:OrderInfo>
>> >>>>>>>       </ns3:GetOrderDetails>
>> >>>>>>>    </soapenv:Body>
>> >>>>>>> </soapenv:Envelope>
>> >>>>>>>
>> >>>>>>> What is going on here? Why is the NS2 namespace missing in the
>> Axis2
>> >>>>>>> generated Soap message?
>> >>>>>>> Also, what can I do to make this relatively simple client work?
>> >>>>>>>
>> >>>>>>> Kind regards,
>> >>>>>>>
>> >>>>>>> --
>> >>>>>>> Harm de Laat
>> >>>>>>> Kabisa ICT
>> >>>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>>
>> >>>>>> --
>> >>>>>> Keith Chapman
>> >>>>>> Senior Software Engineer
>> >>>>>> WSO2 Inc.
>> >>>>>> Oxygenating the Web Service Platform.
>> >>>>>> http://wso2.org/
>> >>>>>>
>> >>>>>> blog: http://www.keith-chapman.org
>> >>>>>
>> >>>>>
>> >>>>>
>> >>>>> --
>> >>>>> Harm de Laat
>> >>>>>
>> >>>>> Kabisa ICT
>> >>>>> 't Inne 9c
>> >>>>> 6021 DA Budel
>> >>>>> KVK: 14090089
>> >>>>>
>> >>>>> e : [EMAIL PROTECTED]
>> >>>>> w : http://www.kabisa.nl
>> >>>>> m : +31 (0)6 144 288 21
>> >>>>> t : +31 (0)495 43 07 98
>> >>>>> f : +31 (0)495 43 05 93
>> >>>>
>> >>>>
>> >>>>
>> >>>> --
>> >>>> Keith Chapman
>> >>>> Senior Software Engineer
>> >>>> WSO2 Inc.
>> >>>> Oxygenating the Web Service Platform.
>> >>>> http://wso2.org/
>> >>>>
>> >>>> blog: http://www.keith-chapman.org
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Harm de Laat
>> >>>
>> >>> Kabisa ICT
>> >>> 't Inne 9c
>> >>> 6021 DA Budel
>> >>> KVK: 14090089
>> >>>
>> >>> e : [EMAIL PROTECTED]
>> >>> w : http://www.kabisa.nl
>> >>> m : +31 (0)6 144 288 21
>> >>> t : +31 (0)495 43 07 98
>> >>> f : +31 (0)495 43 05 93
>> >>
>> >>
>> >>
>> >> --
>> >> Harm de Laat
>> >>
>> >> Kabisa ICT
>> >> 't Inne 9c
>> >> 6021 DA Budel
>> >> KVK: 14090089
>> >>
>> >> e : [EMAIL PROTECTED]
>> >> w : http://www.kabisa.nl
>> >> m : +31 (0)6 144 288 21
>> >> t : +31 (0)495 43 07 98
>> >> f : +31 (0)495 43 05 93
>> >
>> >
>> >
>> > --
>> > Harm de Laat
>> >
>> > Kabisa ICT
>> > 't Inne 9c
>> > 6021 DA Budel
>> > KVK: 14090089
>> >
>> > e : [EMAIL PROTECTED]
>> > w : http://www.kabisa.nl
>> > m : +31 (0)6 144 288 21
>> > t : +31 (0)495 43 07 98
>> > f : +31 (0)495 43 05 93
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> Harm de Laat
>
> Kabisa ICT
> 't Inne 9c
> 6021 DA Budel
> KVK: 14090089
>
> e : [EMAIL PROTECTED]
> w : http://www.kabisa.nl
> m : +31 (0)6 144 288 21
> t : +31 (0)495 43 07 98
> f : +31 (0)495 43 05 93
>



-- 
Keith Chapman
Senior Software Engineer
WSO2 Inc.
Oxygenating the Web Service Platform.
http://wso2.org/

blog: http://www.keith-chapman.org

Reply via email to