|
Home > Archive > BizTalk Server Orchestration > July 2005 > calling webservice using WSE and XMLDocument
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 |
calling webservice using WSE and XMLDocument
|
|
| PCTC_IT 2005-07-04, 5:53 pm |
| Hi,
I have a webservice called HelloWorld that takes no parameters and returns
void.
I have a WSE send port set up for that service.
My question is, can i use a Message typed as an xmlDocument to send the
request to the webservice. Here is my code:
tmpXML.LoadXml("<ns0:HelloWorld
xmlns:ns0=\"http://Athlon2Dev.com/webservices/\"/>");
wsIn.MessagePart_1=tmpXML;
Where tmpXML is an XMLDocument variable, and wsIn is a multi-part message
typed as an xmlDocument.
My goal is to be able to dynamically generate the request schema for the
webservice. I've already know i can receive the response as an xmlDocument.
Thanks,
PCTC_IT
| |
| PCTC_IT 2005-07-04, 5:53 pm |
| Here is the error message i'm getting:
The "WSE" adapter is suspending an outbound message going to destination
URL:"wse://http://localhost/Test/Service.asmx". Details:"Value cannot be null.
Parameter name: methodname".
The port operation identifier is set to the methodname and it is also in the
xmlDocument. Works fine when i use the schema instead of the xmlDocument,
just trying to find a way to call the webservice without using the schema.
Thanks
"PCTC_IT" wrote:
> Hi,
> I have a webservice called HelloWorld that takes no parameters and returns
> void.
> I have a WSE send port set up for that service.
> My question is, can i use a Message typed as an xmlDocument to send the
> request to the webservice. Here is my code:
>
> tmpXML.LoadXml("<ns0:HelloWorld
> xmlns:ns0=\"http://Athlon2Dev.com/webservices/\"/>");
> wsIn.MessagePart_1=tmpXML;
>
> Where tmpXML is an XMLDocument variable, and wsIn is a multi-part message
> typed as an xmlDocument.
> My goal is to be able to dynamically generate the request schema for the
> webservice. I've already know i can receive the response as an xmlDocument.
>
> Thanks,
> PCTC_IT
| |
| PCTC_IT 2005-07-05, 5:51 pm |
| I think the problem might be that In HAT, the message type is empty since it
is an xml document type message. Any help would be appreciatedd.
"PCTC_IT" wrote:
[vbcol=seagreen]
> Here is the error message i'm getting:
> The "WSE" adapter is suspending an outbound message going to destination
> URL:"wse://http://localhost/Test/Service.asmx". Details:"Value cannot be null.
> Parameter name: methodname".
>
> The port operation identifier is set to the methodname and it is also in the
> xmlDocument. Works fine when i use the schema instead of the xmlDocument,
> just trying to find a way to call the webservice without using the schema.
>
> Thanks
>
>
> "PCTC_IT" wrote:
>
|
|
|
|
|