Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / September 2006

Tip: Looking for answers? Try searching our database.

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

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ayaz.usman@hp.com - 21 Sep 2006 22:45 GMT
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?
John Saunders - 21 Sep 2006 23:24 GMT
> Hi,
>
[quoted text clipped - 5 lines]
> 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
yazooo - 22 Sep 2006 01:35 GMT
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.

> > Hi,
> >
[quoted text clipped - 19 lines]
>
> John
John Saunders - 22 Sep 2006 03:33 GMT
> Perhaps Im not asking the right question.
>
[quoted text clipped - 17 lines]
>
> 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
yazooo - 22 Sep 2006 18:44 GMT
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.Soap11ServerProtocolHelper.RouteRequest()
  at
System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMe
ssage message)
  at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
  at System.Web.Services.Protocols.ServerProtocolFactory.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.Protocols.SoapException
: Server did not recognize the value of HTTP Header SOAPAction: .
  at
System.Web.Services.Protocols.Soap11ServerProtocolHelper.RouteRequest()
  at
System.Web.Services.Protocols.SoapServerProtocol.RouteRequest(SoapServerMe
ssage message)
  at System.Web.Services.Protocols.SoapServerProtocol.Initialize()
  at System.Web.Services.Protocols.ServerProtocolFactory.Create(Type
type, Http
Context context, HttpRequest request, HttpResponse response,
Boolean&amp; abortP
rocessing)</faultstring><detail
/></soap:Fault></soap:Body></soap:Envelope>
<!-- ** HERE ** -->

> > Perhaps Im not asking the right question.
> >
[quoted text clipped - 25 lines]
>
> John
John Saunders - 22 Sep 2006 19:43 GMT
> 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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.