473,385 Members | 1,521 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

WCF client needs SoapAction header

RK
Hi,
I've got a WCF client that needs to use a Java Web Service. I need a
soapaction header to appear with the tcp info of the request. I tried
creating a message inspector to add the header, but this doesn't seem
to do it, it just adds the soapaction as a "WebHeader" (see the
example below) but doesn't put it with the other TCP headers at the
TCP level. I did a TCP trace to verify this. How do I go about
adding soapaction for TCP?
Thanks!

<HttpRequest xmlns="http://schemas.microsoft.com/2004/06/ServiceModel/
Management/MessageTrace">
<Method>POST</Method>
<QueryString></QueryString>
<WebHeaders>
<SOAPAction>http://schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT</
SOAPAction>
</WebHeaders>
</HttpRequest>

Here is the TCP trace (with url and host changed)

POST theservice HTTP/1.1
Content-Type: application/soap+xml; charset=utf-8
Host: thehost
Content-Length: 7327
Expect: 100-continue
Connection: Keep-Alive

Here is code from the client message inspector

Public Function BeforeSendRequest(ByRef request As
System.ServiceModel.Channels.Message, _
ByVal channel As
System.ServiceModel.IClientChannel) _
As Object Implements
IClientMessageInspector.BeforeSendRequest

Dim httpRequestMessage As
System.ServiceModel.Channels.HttpRequestMessagePro perty = New
System.ServiceModel.Channels.HttpRequestMessagePro perty
httpRequestMessage.Headers.Add("SOAPAction", "http://
schemas.xmlsoap.org/ws/2005/02/trust/RST/SCT")

request.Properties.Add(System.ServiceModel.Channel s.HttpRequestMessageProperty.Name,
httpRequestMessage)
Return Nothing
End Function
Nov 27 '07 #1
0 5605

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Christian Wilhelm | last post by:
Hi! I'm trying to call a Java WebService out of a .net Client. There are two Methods, one Method requires one Parameter of type Parameter, the other Method requires one Parameter of type...
0
by: GeeeTeee | last post by:
Hi, Has anyone out there managed to write a C# Web Service client which can add ebXML data to the SOAP Enveloper? And if so, could you please give me some pointers? I just can't figure out how...
2
by: pshvarts | last post by:
(I'm new in SOAP) I get some wsdl file (from apache service ). I tried creating SOAP client with .NET - trying to add Web Reference and get error like: "Custom tool error: Unable to import...
1
by: William | last post by:
I have a few questions. First, I have a java webservice, which was developed using the Java Webserices Developer Pack 1.3. Here is the wsdl for the service. (Note: That this service is not exposed...
5
by: Nate | last post by:
We are attempting to make a request to a web service (we will refer to it as XXXServices) hosted on a Web Logic server from a C# SOAP client. The server responds with a 401 Unauthorized error...
6
by: John | last post by:
I'm trying to call a Webservice (Non-.NET) That requires the insertion of security credentials into the SOAP header. Up until know I've been creating Dynamic proxy classes to call web services and...
5
by: Nick K. | last post by:
I use wsdl.exe to generate client code to call a web service. The actual web service is generated with the BizTalk Web Services Publishing Wizard. I'm not sure this is particular to the BizTalk...
7
by: beachdog | last post by:
I'm using Visual Studio 2005/C# to build a web client. The web server is something I've written in a different framework, which does not support generating wsdl, so I have hand-built a wsdl file,...
1
by: compurhythms | last post by:
I'm having an issue calling a java-based web service from a C#/.NET 2.0 client that uses WSE 3.0. (No WCF) There is an operation on the web service that takes a single base64 encoded parameter...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.