BizTalk Server General - Web Service Integration (Issues around XML content)

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > February 2005 > Web Service Integration (Issues around XML content)





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Web Service Integration (Issues around XML content)
SriSamp

2005-02-01, 7:50 am

Am trying to define an orchestration that connects to a web-service that
receives an XML document as input. What this means is that the method takes
an XMLDocument as its parameter and can return an XMLNode as its output
parameter. When I add a web-reference to this web-service, the
"Reference.xsd" is not generated (because I think BizTalk is not able to
infer what the schema should be).

How can define a message to this web-service and generate a request and get
a response? Are there any BizTalk SDK samples along the same lines?
--
HTH,
SriSamp
Please reply to the whole group only!
http://www32.brinkster.com/srisamp


Neal Walters

2005-02-01, 5:59 pm

When the web service returns a simple-type, such as a System.String, there is
no need for the .xsd. Look in your multipart messages types, and you should
see the message there. I think the .xsd is only created when you return an
object (a complex or .NET type).

Neal Walters
http://Biztalk-Training.com - New SQL and Web Service Videos Available

SriSamp

2005-02-02, 2:50 am

Thanks. I got it working after spending some time with it... :-)
The web-service takes in a complex-type (like an XML document) and does not
return anything. What I did was to put in a "Construct Message" shape and
then add a "Message Assignment" shape. In this, I just equated the
web-services message type to the incoming message type. For example:
=====
Message_2.inputXML = Message_1; (Note that inputXML is the name of parameter
in the web-service, which is factored as a part in the message).
=====

Post this, it worked fine.
I now have to try for the web-service returning back an XML document....
--
HTH,
SriSamp
Please reply to the whole group only!
http://www32.brinkster.com/srisamp

"Neal Walters" <NealWalters@discussions.microsoft.com> wrote in message
news:63233CA6-2A25-48CD-BB4F-A1E9FDE09D88@microsoft.com...
> When the web service returns a simple-type, such as a System.String, there

is
> no need for the .xsd. Look in your multipart messages types, and you

should
> see the message there. I think the .xsd is only created when you return

an
> object (a complex or .NET type).
>
> Neal Walters
> http://Biztalk-Training.com - New SQL and Web Service Videos Available
>



WenJun Zhang[msft]

2005-02-02, 7:47 am

Yes, this is a familiar issue. Only in case the parameter is a
schema type, the publishing wizard generates the Reference.xsd file.

"If the Web method parameter is a schema type, BizTalk adds the
schema type to the BizTalk project as a schema in Reference.xsd. "

Thanks.

Best regards,

WenJun Zhang
Microsoft Online Partner Support

This posting is provided "AS IS" with no warranties, and confers no
rights.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com