473,406 Members | 2,451 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,406 software developers and data experts.

Building a Web Service Proxy server wsdl.exe /server Interface gsoap

Hi,

I've built a web services proxy server, in C# using wsdl.exe, by
importing wsdl. Howeever,
when I go to : http://localhost/sample.asmx?wsdl, they wsdl there does
not match the wsdl I fed into wsdl.exe.

Why is this? Is there something I can do to make the input and output
wsdl match?

Sep 21 '06 #1
5 12662
<ay********@hp.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Hi,

I've built a web services proxy server, in C# using wsdl.exe, by
importing wsdl. Howeever,
when I go to : http://localhost/sample.asmx?wsdl, they wsdl there does
not match the wsdl I fed into wsdl.exe.

Why is this? Is there something I can do to make the input and output
wsdl match?
Why should they match? They're not the same thing.

Since you already have the WSDL, why do you want to use "?wsdl"? That uses
reflection to create a WSDL and send it back to the caller. That's not what
you want. You want to send the caller _your_ WSDL - the one you used to
create the server stub.

I don't know if there's a way to intercept the "?wsdl" syntax to send back
your own WSDL, but even if there were such a thing, I wouldn't use it. I
would place the WSDL somewhere on your web site and allow customers to
download it at, for instance, http://localhost/sample.wsdl.

John
Sep 21 '06 #2
Perhaps Im not asking the right question.

We have a published webserive in Java, based on myInterface.wsdl that
is being used by c++ clients with their client stubs wriite with gsoap.
I now want to create, a webservice proxy server using .NET. Easy right,

">wsdl.exe /serverInterface myInterface.wsdl", Implement interface and
deploy on IIS. Done.

When I now try to connect those exisiting clients writen with gsoap, to
my new .NET webservice proxy service, I get HTTP 500 Errors.

Im not sure why, its the same exact wsdl, I can conncect succesfully to
the new .NET service with .net clients, but not gsoap. So my thinking
was that wsdl.exe mangles the wsdl doc ( myInterface.wsdl) because when
I hit http://localhost/service/myInterface.asmx?wsdl, this wsdl does
not match myInterface.wsdl. More imprtantly I can no longer connect my
existing gsoap clients to this new webservice in .net.

Any help would be appreciated.


John Saunders wrote:
<ay********@hp.comwrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
Hi,

I've built a web services proxy server, in C# using wsdl.exe, by
importing wsdl. Howeever,
when I go to : http://localhost/sample.asmx?wsdl, they wsdl there does
not match the wsdl I fed into wsdl.exe.

Why is this? Is there something I can do to make the input and output
wsdl match?

Why should they match? They're not the same thing.

Since you already have the WSDL, why do you want to use "?wsdl"? That uses
reflection to create a WSDL and send it back to the caller. That's not what
you want. You want to send the caller _your_ WSDL - the one you used to
create the server stub.

I don't know if there's a way to intercept the "?wsdl" syntax to send back
your own WSDL, but even if there were such a thing, I wouldn't use it. I
would place the WSDL somewhere on your web site and allow customers to
download it at, for instance, http://localhost/sample.wsdl.

John
Sep 22 '06 #3
"yazooo" <ay********@hp.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
Perhaps Im not asking the right question.

We have a published webserive in Java, based on myInterface.wsdl that
is being used by c++ clients with their client stubs wriite with gsoap.
I now want to create, a webservice proxy server using .NET. Easy right,

">wsdl.exe /serverInterface myInterface.wsdl", Implement interface and
deploy on IIS. Done.

When I now try to connect those exisiting clients writen with gsoap, to
my new .NET webservice proxy service, I get HTTP 500 Errors.

Im not sure why, its the same exact wsdl, I can conncect succesfully to
the new .NET service with .net clients, but not gsoap. So my thinking
was that wsdl.exe mangles the wsdl doc ( myInterface.wsdl) because when
I hit http://localhost/service/myInterface.asmx?wsdl, this wsdl does
not match myInterface.wsdl. More imprtantly I can no longer connect my
existing gsoap clients to this new webservice in .net.

Any help would be appreciated.
Given that the problem has nothing to do with "?wsdl", I think you'd better
supply some details. A "500 error" is what you get whenever the web server
throws an unhandled exception. ASP.NET should have sent a SOAP Fault along
with the 500 error. The fault may have details of what went wrong in the
server.

John
Sep 22 '06 #4
This is the error I get:

SOAP 1.1 fault: SOAP-ENV:Client [no subcode]
"System.Web.Services.Protocols.SoapException: Server did not recognize
the value
of HTTP Header SOAPAction: .
at
System.Web.Services.Protocols.Soap11ServerProtocol Helper.RouteRequest()
at
System.Web.Services.Protocols.SoapServerProtocol.R outeRequest(SoapServerMe
ssage message)
at System.Web.Services.Protocols.SoapServerProtocol.I nitialize()
at System.Web.Services.Protocols.ServerProtocolFactor y.Create(Type
type, Http
Context context, HttpRequest request, HttpResponse response, Boolean&
abortProce
ssing)"
Detail: [no detail]
HTTP/1.1 500 Internal Server Error
Connection: close
Date: Fri, 22 Sep 2006 17:44:05 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
Cache-Control: private
Content-Type: text/xml; charset=utf-8
Content-Length: 866

<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:soap="http://schemas.
xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode
>soap:Client</faultcode><faultstring>System.Web.Services.Protoco ls.SoapException
: Server did not recognize the value of HTTP Header SOAPAction: .
at
System.Web.Services.Protocols.Soap11ServerProtocol Helper.RouteRequest()
at
System.Web.Services.Protocols.SoapServerProtocol.R outeRequest(SoapServerMe
ssage message)
at System.Web.Services.Protocols.SoapServerProtocol.I nitialize()
at System.Web.Services.Protocols.ServerProtocolFactor y.Create(Type
type, Http
Context context, HttpRequest request, HttpResponse response,
Boolean&amp; abortP
rocessing)</faultstring><detail
/></soap:Fault></soap:Body></soap:Envelope>
<!-- ** HERE ** -->

John Saunders wrote:
"yazooo" <ay********@hp.comwrote in message
news:11**********************@b28g2000cwb.googlegr oups.com...
Perhaps Im not asking the right question.

We have a published webserive in Java, based on myInterface.wsdl that
is being used by c++ clients with their client stubs wriite with gsoap.
I now want to create, a webservice proxy server using .NET. Easy right,

">wsdl.exe /serverInterface myInterface.wsdl", Implement interface and
deploy on IIS. Done.

When I now try to connect those exisiting clients writen with gsoap, to
my new .NET webservice proxy service, I get HTTP 500 Errors.

Im not sure why, its the same exact wsdl, I can conncect succesfully to
the new .NET service with .net clients, but not gsoap. So my thinking
was that wsdl.exe mangles the wsdl doc ( myInterface.wsdl) because when
I hit http://localhost/service/myInterface.asmx?wsdl, this wsdl does
not match myInterface.wsdl. More imprtantly I can no longer connect my
existing gsoap clients to this new webservice in .net.

Any help would be appreciated.

Given that the problem has nothing to do with "?wsdl", I think you'd better
supply some details. A "500 error" is what you get whenever the web server
throws an unhandled exception. ASP.NET should have sent a SOAP Fault along
with the 500 error. The fault may have details of what went wrong in the
server.

John
Sep 22 '06 #5
"yazooo" <ay********@hp.comwrote in message
news:11*********************@i3g2000cwc.googlegrou ps.com...
This is the error I get:

SOAP 1.1 fault: SOAP-ENV:Client [no subcode]
"System.Web.Services.Protocols.SoapException: Server did not recognize
the value
of HTTP Header SOAPAction: .
Ok, so what value did you send it for SOAPAction? Did it receive the value
you sent?

I'm sorry to have to say this, but once ASP.NET starts talking about low
level issues like SOAPAction, then it is no longer possible to ignore the
details of how web services are implemented in .NET.

This is especially true in this case, as the computer is likely to be
telling you the truth. It didn't recognize the SOAPAction header value.

John
Sep 22 '06 #6

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

Similar topics

5
by: Bill Hauver | last post by:
I am attempting to use a web service from my work pc which is behind a firewall. I have used wsdl.exe to create the web service reference class and added it to my project. (this seems to work...
4
by: Joe | last post by:
I'm hosting my web service on a Windows 2003 box which is remotely located. When trying to add a web reference to a C# project I get an error message 'There was an error downloading...
6
by: Bryan Dickerson | last post by:
(Newbie Alert!!) Is there a way to generate a Web Service from a WSDL file? Or does this not make sense? -- TFWBWY...A
7
by: Jorgen Haukland, Norway | last post by:
Hi, I have created a Java webservice which runs in IBM WebSphere appserver. I take the WSDL-file and create a VS.NET WinForm application and calls the service running on my PC and everything...
3
by: CJF | last post by:
Is there a way to build a web service from an existing wsdl? I do not wish to create a .Net web service client proxy from a wsdl, but an actual web service. I tried using the wsdl.exe utility, but...
1
by: manfred | last post by:
Hi Together, I tried to build a webservice proxy using a wsdl, generated in the sun/java world. I used the .Net 2003 Version, choosing there VC++. The steps I did: 1. Visual C++ Projekte /...
6
by: nickname | last post by:
I want to pass some xml to a web service method, the xml will confirm to a defined schema. Lets say the schema is defined as: <xs:schema attributeFormDefault="unqualified"...
15
by: Joseph Geretz | last post by:
I'm a bit puzzled by the current recommendation not to send Datasets or Datatables between application tiers. http://support.microsoft.com/kb/306134 ...
3
by: Enda Manni | last post by:
Hi, I have a gSoap Web Service written using C++, it uses SOAP username and password authentication. I also have a C# form client consuming the web service, all this was working fine until...
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.