Hi,
I use the delegation processor to construct the following message and send it to a Microsoft biztalk server (Jikes!): <?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soapenv:Body> <m:getVestigingDossier xmlns:m="http://KvKIntern"> <prov1:KvKRequest xmlns:prov1="Request"> <Dossiernummer>1234567</Dossiernummer> <Subdossiernummer>0000</Subdossiernummer> </prov1:KvKRequest> </m:getVestigingDossier> </soapenv:Body> </soapenv:Envelope> Response: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <soap:Fault> <faultcode>soap:Client</faultcode> <faultstring>Server did not recognize the value of HTTP Header SOAPAction: .</faultstring> <detail/> </soap:Fault> </soap:Body> </soap:Envelope> The call fails when <?xml version="1.0" encoding="utf-8"?> is put in the request. However when I repeat the same call without the <?xml line, the request is accepted. Is there a way to specify in the delegation processor that the <?xml line should be omitted ? This is my processor code <!-- Construct Method call kvk soap call --> <p:processor name="oxf:xslt"> <p:input name="data" href="#instance" debug="false"/> <p:input name="config"> <!-- fill in kvk number --> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output omit-xml-declaration="yes"/> <xsl:template match="/root/ssn"> <delegation:execute service="kvk" operation="getVestigingDossier" xsl:version="2.0"><dossiernummer xsi:type="xsd:string"><xsl:apply-templates/></dossiernummer><subdossiernumme r xsi:type="xsd:string">0000</subdossiernummer></delegation:execute> </xsl:template> </xsl:stylesheet> </p:input> <p:output name="data" id="kvk_call" debug="true"/> </p:processor> <!-- get kvk data from soap kvk --> <p:processor name="oxf:delegation"> <p:input name="interface" debug="false"> <config> <service id="kvk" type="webservice" style="rpc" endpoint="MyEndpoint"> <operation nsuri="KvKInfo" name="getVestigingDossier" encodingStyle="http://schemas.xmlsoap.org/soa p/encoding/" select="/soapenv:Envelope/soapenv:Body"></operation> </service> </config> </p:input> <p:input name="call" href="#kvk_call" debug="true"/> <p:output name="data" id="kvk-result" debug="true"/> </p:processor> Thanks in advance, Tom -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Tom,
Try adding <xsl:output omit-xml-declaration="yes"/> as a child of xsl:stylesheet Ryan
Ryan Puddephatt Tom Ferdinande wrote: Hi, I use the delegation processor to construct the following message and send it to a Microsoft biztalk server (Jikes!): <?xml version="1.0" encoding="utf-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soapenv:Body> <m:getVestigingDossier xmlns:m="http://KvKIntern"> <prov1:KvKRequest xmlns:prov1="Request"> <Dossiernummer>1234567</Dossiernummer> <Subdossiernummer>0000</Subdossiernummer> </prov1:KvKRequest> </m:getVestigingDossier> </soapenv:Body> </soapenv:Envelope> Response: <?xml version="1.0" encoding="utf-8"?> <<a class="moz-txt-link-freetext" href="soap:Envelope">soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <a class="moz-txt-link-rfc2396E" href="soap:Body"><soap:Body> <a class="moz-txt-link-rfc2396E" href="soap:Fault"><soap:Fault> <faultcode><a class="moz-txt-link-freetext" href="soap:Client">soap:Client</faultcode> <faultstring>Server did not recognize the value of HTTP Header SOAPAction: .</faultstring> <detail/> </<a class="moz-txt-link-freetext" href="soap:Fault">soap:Fault> </<a class="moz-txt-link-freetext" href="soap:Body">soap:Body> </<a class="moz-txt-link-freetext" href="soap:Envelope">soap:Envelope> The call fails when <?xml version="1.0" encoding="utf-8"?> is put in the request. However when I repeat the same call without the <?xml line, the request is accepted. Is there a way to specify in the delegation processor that the <?xml line should be omitted ? This is my processor code <!-- Construct Method call kvk soap call --> <p:processor name="oxf:xslt"> <p:input name="data" href="#instance" debug="false"/> <p:input name="config"> <!-- fill in kvk number --> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output omit-xml-declaration="yes"/> <xsl:template match="/root/ssn"> <delegation:execute service="kvk" operation="getVestigingDossier" xsl:version="2.0"><dossiernummer xsi:type="xsd:string"><xsl:apply-templates/></dossiernummer><subdossiernumme r xsi:type="xsd:string">0000</subdossiernummer></delegation:execute> </xsl:template> </xsl:stylesheet> </p:input> <p:output name="data" id="kvk_call" debug="true"/> </p:processor> <!-- get kvk data from soap kvk --> <p:processor name="oxf:delegation"> <p:input name="interface" debug="false"> <config> <service id="kvk" type="webservice" style="rpc" endpoint="MyEndpoint"> <operation nsuri="KvKInfo" name="getVestigingDossier" encodingStyle="http://schemas.xmlsoap.org/soa p/encoding/" select="/soapenv:Envelope/soapenv:Body"></operation> </service> </config> </p:input> <p:input name="call" href="#kvk_call" debug="true"/> <p:output name="data" id="kvk-result" debug="true"/> </p:processor> Thanks in advance, Tom -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Ryan,
As you
can see from the processor code I already tried this, without
success.
It
seems like the delegation processor adds the XML declaration
line.
Best
Regards,
Tom
-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Hi Tom,
Yes, it would be Axis, which is used by the Delegation processor that adds the XML prologue. Is it failing because the content is not in UTF-8, or because BizTalk does not support an XML prologue? The later seems unlikely. Alex On 3/19/07, Tom Ferdinande <[hidden email]> wrote: > > > Ryan, > > As you can see from the processor code I already tried this, without > success. > It seems like the delegation processor adds the XML declaration line. > > Best Regards, > > Tom > > > -----Original Message----- > From: Ryan Puddephatt [mailto:[hidden email]] > Sent: vrijdag 16 maart 2007 15:33 > To: [hidden email] > Subject: Re: [ops-users] SOAP call to microsoft biztalk server fails because > the <?xml ...> > > Tom, > Try adding <xsl:output omit-xml-declaration="yes"/> as a child of > xsl:stylesheet > > Ryan > > > > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > w> www.teleflex.com > > > Tom Ferdinande wrote: > Hi, > > I use the delegation processor to construct the following message and send > it to a Microsoft biztalk server (Jikes!): > > <?xml version="1.0" encoding="utf-8"?> > <soapenv:Envelope > xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > <soapenv:Body> > <m:getVestigingDossier xmlns:m="http://KvKIntern"> > <prov1:KvKRequest xmlns:prov1="Request"> > <Dossiernummer>1234567</Dossiernummer> > <Subdossiernummer>0000</Subdossiernummer> > </prov1:KvKRequest> > </m:getVestigingDossier> > </soapenv:Body> > </soapenv:Envelope> > > Response: > <?xml version="1.0" encoding="utf-8"?> <soap:Envelope > xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> > <soap:Fault> > <faultcode>soap:Client</faultcode> <faultstring>Server did not recognize > the value of HTTP Header SOAPAction: .</faultstring> <detail/> > </soap:Fault> </soap:Body> </soap:Envelope> > > The call fails when <?xml version="1.0" encoding="utf-8"?> is put in the > request. > However when I repeat the same call without the <?xml line, the request is > accepted. > Is there a way to specify in the delegation processor that the <?xml line > should be omitted ? > > This is my processor code > > > <!-- Construct Method call kvk soap call --> > <p:processor name="oxf:xslt"> > <p:input name="data" href="#instance" debug="false"/> > <p:input name="config"> > <!-- fill in kvk number --> > <xsl:stylesheet version="2.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > <xsl:output omit-xml-declaration="yes"/> > <xsl:template match="/root/ssn"> > > <delegation:execute service="kvk" > operation="getVestigingDossier" xsl:version="2.0"><dossiernummer > xsi:type="xsd:string"><xsl:apply-templates/></dossiernummer><subdossiernumme > r > xsi:type="xsd:string">0000</subdossiernummer></delegation:execute> > </xsl:template> > </xsl:stylesheet> > </p:input> > <p:output name="data" id="kvk_call" debug="true"/> > </p:processor> > > <!-- get kvk data from soap kvk --> > <p:processor name="oxf:delegation"> > <p:input name="interface" debug="false"> > <config> > <service id="kvk" type="webservice" style="rpc" > endpoint="MyEndpoint"> > <operation nsuri="KvKInfo" name="getVestigingDossier" > encodingStyle="http://schemas.xmlsoap.org/soa > p/encoding/" > select="/soapenv:Envelope/soapenv:Body"></operation> > </service> > </config> > </p:input> > <p:input name="call" href="#kvk_call" debug="true"/> > <p:output name="data" id="kvk-result" debug="true"/> > </p:processor> > > > Thanks in advance, > > Tom > > > > > > ________________________________ > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > ObjectWeb mailing lists service home page: http://www.objectweb.org/wws > > -- Orbeon Forms - Web 2.0 Forms for the Enterprise http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |