Home Page › Forums › BizTalk 2004 – BizTalk 2010 › SOAP Send Port – Web Service
- This topic has 3 replies, 1 voice, and was last updated 9 years, 1 month ago by
community-content.
-
AuthorPosts
-
-
August 20, 2010 at 4:09 PM #25700
I’m trying to configure a SOAP send port that calls a web service to facilitate a messaging-only scenario. I created the proxy assembly, and in the SOAP transport properties on the Web Service tab I have selected it, the type name and the method name. The method takes a string argument. I am dropping an XML file into a File receive location that the SOAP sendport subscribes to via BTSReceivePortName. See the error I get below. The file that is dropped is an ascii file that just happens to contain well-formed xml. Both pipelines are pass-thru.
Error: “Failed to serialize the message part “strXML” into the type “String” using namespace “”. Please ensure that the message part stream is created properly. “.
Can you think of anything I’m missing?
-
August 20, 2010 at 4:53 PM #25701
Hi sbrown63,
See the following two blogs for more information on how to deal with the error you are getting:
Daniel.
-
August 21, 2010 at 8:23 AM #25702
Did you try to send using XML pipeline?
Another reason: when you configure SOAP – and you don’t use an orchestration – how do you know that your message is suitable to schema your web service expects to receive?
For test – I would create test project, with Orchestration – generated schemas. Just to validate your message is correct.
Well, now I have built some sample:
1. Web Service (ASMX which gets an Object with two members (Name and LastName))
2. Generated schema from “Add WebReference”, and added an orchestration with message of WebType – to test “with orchestration”.
3. Deploy and run – from file, to web service and back -response all run OK.
4. Stopped orchestration, added filter on send port to Web Service “Bts.ReceivePortName”, and on second send port, which gets response to file – “Bts.MessageType = string” (that what returns back)
5. Run again – all OK.
What you didn’t mention – if you have chosen in configuration button of SOAP adapter – TAB called Web Service. There you must choose DLL of your web service if it is compiled, or in my case – I have chosen DLL of my orchestration (though I didn’t use an orchestration in second case, only it’s types).
If there’s something you need additional explain – write here.
Good luck,
%u263a
-
August 21, 2010 at 8:24 AM #25703
My mistake about configuring Web Service TAB: yes, you did configure.
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.