Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Biztalk
| Search | Today's Posts | Mark Forums Read
Biztalk General discussion about Biztalk server.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Biztalk section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 26th, 2007, 06:36 AM
Registered User
 
Join Date: Apr 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Unable to create proper SOAP Header to call a web

Hi
I am facing following error when I called a web service and creating SOAP Header in message assignment.
I got lots of exp. from different site but still I am getting following error in event log

"http://193.173.151.237:81/vvs.dll/soap/IPersonenautoII". It will be retransmitted after the retry interval specified for this Send Port. Details:"Failed to initialize the SOAP header field or property "TTussenPersoonValue".
Details: "System.InvalidOperationException: There is an error in XML document (1, 2).".
Possible reasons are:
1) MemberName property of System.Web.Services.Protocol.SoapHeaderAttribute does not map to a field or property in the type.
2) The message context property value associated with the header cannot be converted to the target header type.
3) The target field or property is read-only or cannot be modified. ".



We made an object (Header xml)
=========================
XMLDOM= new System.Xml.XmlDocument();
XMLDOM.LoadXml(@"<ns0:TTussenPersoon xmlns:ns0=""tns:TTussenPersoon""><InlogNaam>aaaa</InlogNaam><Wachtwoord>bbbb</Wachtwoord</ns0:TTussenPersoon>");

Please help me out if any body has faced such kind of situation



  #2 (permalink)  
Old May 3rd, 2007, 08:13 PM
Registered User
 
Join Date: May 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

I have the same problem.

Did you manage to figure this one out?
Regards

Adriaan


  #3 (permalink)  
Old May 7th, 2007, 05:30 AM
Registered User
 
Join Date: Apr 2007
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi all

yes I found the solution.

Shashi Prakash

  #4 (permalink)  
Old May 19th, 2008, 08:55 AM
Registered User
 
Join Date: May 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by shashi.prakash
 hi all

yes I found the solution.

Shashi Prakash

  #5 (permalink)  
Old May 19th, 2008, 09:01 AM
Registered User
 
Join Date: May 2008
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

try to pass soap header xml in message assignment shape as follows

WS_Request(ConsumeWSWithHeaders.AuthenticationHead er)= "<?xml version='1.0' encoding='utf-8'?><AuthenticationHeader xmlns='http://tempuri.org/'><Username>ram</Username><Password>ram</Password></AuthenticationHeader>";

it failed and given the above error if header xml is passed with ""
as

WS_Request(ConsumeWSWithHeaders.AuthenticationHead er)= "<?xml version=/"1.0/" encoding=/"utf-8/"?><AuthenticationHeader xmlns='http://tempuri.org/'><Username>ram</Username><Password>ram</Password></AuthenticationHeader>";







  #6 (permalink)  
Old July 31st, 2013, 03:31 AM
Registered User
Points: 27, Level: 1
Points: 27, Level: 1 Points: 27, Level: 1 Points: 27, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2013
Location: Delhi
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

In BizTalk server a SOAP header is accomplished by defining a class representing the data in a particular SOAP header and deriving it from the SoapHeader class.

[WebMethod]
public string HelloWorld()
{
return "Hello World";
}

call this WebMethod in SOAP::Lite with this Perl code:

use SOAP::Lite;

my $soap = SOAP::Lite
-> uri('http://www.alfredbr.com')
-> on_action( sub { join '/', 'http://www.alfredbr.com', $_[1] } )
-> proxy('http://localhost/Example1/Service1.asmx');

print $soap->HelloWorld()->result;

http://www.athenainfotech.co.uk/free...k-health-check


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help invoking SOAP web service in C# traderhen .NET Web Services 0 December 12th, 2006 04:34 AM
Unable to create users using ASP.NET Web Admn Tool iamrashida83 ASP.NET 2.0 Professional 1 August 29th, 2006 01:34 PM
Unable to call function... rupen Javascript How-To 1 July 1st, 2006 04:53 AM
Unable to call the date from the database nvillare Classic ASP Basics 2 July 10th, 2003 04:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.