RE: XML Documents to Web service

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Torben (anonymous_at_discussions.microsoft.com)
Date: 03/17/05


Date: Thu, 17 Mar 2005 00:27:53 -0800

Thank You

>-----Original Message-----
>Hi Torben,
>
>You can pass an XML document to the web service. You do
not have to just
>pass primitive types.
>
>The Web Service Publishing Wizard will nicely abstract a
lot of this for
>you. Just create an orchestration with a receive shape
and specify the
>Message it should receive (which is of a schema type in
the project or
>referenced from the project). When you go through the
Publishing Wizard,
>it will expose this Receive Shape operation as a SOAP
Request expecting an
>XML document of this type to be passed. See my simple
SOAP Request sample
>below:
>
>---------------------------
>POST /BTSOrchAsWS_Proxy/BTSOrchAsWS_OrchAsWebSvc_WSReqRes
pPort_1.asmx
>HTTP/1.1
>Host: localhost
>Content-Type: text/xml; charset=utf-8
>Content-Length: length
>SOAPAction:
>"http://DougGirard/BTSOrchAsWS_OrchAsWebSvc_WSReqRespPort
_1/Operation_1"
>
><?xml version="1.0" encoding="utf-8"?>
><soap:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body>
> <Operation_1 xmlns="http://DougGirard">
> <Root PONumber="string"
xmlns="http://BTSHTTPSend.SimpleSchema">
> <MyChildRecord SubAttr1="string" xmlns="" />
> </Root>
> </Operation_1>
> </soap:Body>
></soap:Envelope>
>---------------------------
>
>This is the XML document which will be parsed out of the
SOAP Request and
>passed to BTS as a Message in the Recv Shape:
><Root PONumber="string"
xmlns="http://BTSHTTPSend.SimpleSchema">
> <MyChildRecord SubAttr1="string" xmlns="" />
></Root>
>
>Note When you use the wizard to create receive
locations, the wizard
>creates the receive locations using many default values.
The default values
>for receive and send pipelines are
>Microsoft.BizTalk.DefaultPipelines.PassThruReceive and
>Microsoft.BizTalk.DefaultPipelines.PassThruTransmit. If
messages received
>through the published Web service require any special
pipeline processing
>(for example, validation, correlation, or
inbound/outbound maps), then you
>should set the send and receive pipelines to
>Microsoft.BizTalk.DefaultPipelines.XMLReceive,
>Microsoft.BizTalk.DefaultPipelines.XMLSend, or to a
custom pipeline.
>
>HTH,
>Doug Girard [MSFT]
>
>Note: This posting is provided "AS IS" with no
warranties, and confers no
>rights.
>
>
>--------------------
>>Content-Class: urn:content-classes:message
>>From: "Torben" <anonymous@discussions.microsoft.com>
>>Sender: "Torben" <anonymous@discussions.microsoft.com>
>>References: <2ea401c520ca$d0e5f060$a501280a@phx.gbl>
><MFc$9rPJFHA.132@TK2MSFTNGXA02.phx.gbl>
>>Subject: RE: XML Documents to Web service
>>Date: Thu, 10 Mar 2005 01:10:48 -0800
>>Lines: 14
>>Message-ID: <537401c52551$0c7637e0$a501280a@phx.gbl>
>>MIME-Version: 1.0
>>Content-Type: text/plain;
>> charset="iso-8859-1"
>>Content-Transfer-Encoding: 7bit
>>X-Newsreader: Microsoft CDO for Windows 2000
>>X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
>>Thread-Index: AcUlUQx2vpSnYvpuQcq4b3D5fdIp/g==
>>Newsgroups: microsoft.public.biztalk.general
>>Path: TK2MSFTNGXA02.phx.gbl
>>Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.biztalk.general:25324
>>NNTP-Posting-Host: tk2msftngxa13.phx.gbl 10.40.1.165
>>X-Tomcat-NG: microsoft.public.biztalk.general
>>
>>Hi
>>
>>Thanx you for the links
>>
>>But I cant se how this helps !?
>>
>>Publishing an Orchestration as a Web Service using the
>>wizard makes the assumption that callers want to
>>pass .NET objects that represent their documents
instead
>>of passing the documents directly, and I need the
client
>>to pass a xmldocument to the webservice not using .Net
>>objects
>>
>>/Torben
>>
>
>.
>



Relevant Pages

  • There was an error generating the XML document. --> Object reference not set to an instance
    ... I've written a web service that returns an xml document with some ... information about documents in a Sharepoint Server, ... Server was unable to process request. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Passing an XML document to a web service
    ... The web service will be on an IBM box, ... > Web services will do serialization for you. ... > You have two options to pass xml document between the client and the ... If that fails, use string. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Web Service calling RPGLE Service Program..?
    ... an XML document has no set length and with integrating a Web Service ... with RPGLE my max length is 65535 for a character ... java program that actually calls an RPGLE Service program passing the ...
    (comp.sys.ibm.as400.misc)
  • Re: how to use web-services publising wizard from dev machine?
    ... ASP.Net web service proejct for you. ... > I am trying to use the web-services publising wizard. ... > the main biztalk serverwithout installing visual ...
    (microsoft.public.biztalk.server)
  • Re: send soap message
    ... I'm trying to find out how to create an xml document with the above ... > you using .Net or the Soap toolkit. ... > If you are developing your web service client in .Net then you can build ... > framework for an example on how to POST data over Http. ...
    (microsoft.public.dotnet.xml)