Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > Biztalk
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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



Reply With Quote
  #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


Reply With Quote
  #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

Reply With Quote
  #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

Reply With Quote
  #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>";







Reply With Quote
  #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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:47 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.