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? 5 12716
<ay********@hp. comwrote in message
news:11******** **************@ m73g2000cwd.goo glegroups.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
Perhaps Im not asking the right question.
We have a published webserive in Java, based on myInterface.wsd l 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.wsd l", 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.wsd l) because when
I hit http://localhost/service/myInterface.asmx?wsdl, this wsdl does
not match myInterface.wsd l. 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.goo glegroups.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
"yazooo" <ay********@hp. comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
Perhaps Im not asking the right question.
We have a published webserive in Java, based on myInterface.wsd l 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.wsd l", 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.wsd l) because when
I hit http://localhost/service/myInterface.asmx?wsdl, this wsdl does
not match myInterface.wsd l. 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
This is the error I get:
SOAP 1.1 fault: SOAP-ENV:Client [no subcode]
"System.Web.Ser vices.Protocols .SoapException: Server did not recognize
the value
of HTTP Header SOAPAction: .
at
System.Web.Serv ices.Protocols. Soap11ServerPro tocolHelper.Rou teRequest()
at
System.Web.Serv ices.Protocols. SoapServerProto col.RouteReques t(SoapServerMe
ssage message)
at System.Web.Serv ices.Protocols. SoapServerProto col.Initialize( )
at System.Web.Serv ices.Protocols. ServerProtocolF actory.Create(T ype
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:Envel ope
xmlns:soap="htt p://schemas.
xmlsoap.org/soap/envelope/"
xmlns:xsi="http ://www.w3.org/2001/XMLSchema-instance
"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema"><soa p:Body><soap:Fa ult><faultcode
>soap:Client</faultcode><faul tstring>System. Web.Services.Pr otocols.SoapExc eption
: Server did not recognize the value of HTTP Header SOAPAction: .
at
System.Web.Serv ices.Protocols. Soap11ServerPro tocolHelper.Rou teRequest()
at
System.Web.Serv ices.Protocols. SoapServerProto col.RouteReques t(SoapServerMe
ssage message)
at System.Web.Serv ices.Protocols. SoapServerProto col.Initialize( )
at System.Web.Serv ices.Protocols. ServerProtocolF actory.Create(T ype
type, Http
Context context, HttpRequest request, HttpResponse response,
Boolean& abortP
rocessing)</faultstring><de tail
/></soap:Fault></soap:Body></soap:Envelope>
<!-- ** HERE ** -->
John Saunders wrote:
"yazooo" <ay********@hp. comwrote in message
news:11******** **************@ b28g2000cwb.goo glegroups.com.. .
Perhaps Im not asking the right question.
We have a published webserive in Java, based on myInterface.wsd l 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.wsd l", 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.wsd l) because when
I hit http://localhost/service/myInterface.asmx?wsdl, this wsdl does
not match myInterface.wsd l. 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
"yazooo" <ay********@hp. comwrote in message
news:11******** *************@i 3g2000cwc.googl egroups.com...
This is the error I get:
SOAP 1.1 fault: SOAP-ENV:Client [no subcode]
"System.Web.Ser vices.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 without a hitch).
Before I use this class, I make the necessary calls to
instantiate a WebProxy class and then pass in my
credentials to set the WebProxy.Credentials property so I
can get through the proxy server.
|
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 'http://mydomain.com:port/webservice.asmx'
The operation has timed-out
(I've tried with and without using a separate port for the service)
The weird thing is the page does show up on the left side of the screen
listing the available methods but the Add...
|
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
|
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 works fine.
So I deploy the webservice on a remote machine (Linux box) and I get an
error when calling the service. BUT: I can retrieve the WSDL and make a
webreference in my VS.NET project, so obviously I (or more correct: My VS.NET
project) am...
|
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 the output is class of type
SoapHttpClientProtocol and not WebService. It was my understanding that you
could create both client proxies and web services from an existing wsdl file?
If not, what's another way of creating a .NET web service that...
| |
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 / "Konsoleanwendung (.Net)"
2. Projekt / Webverweis hinzufügen / lokal
I chose the wsdl, which were generated before within a WSAD environment
(style: RPC encoded). For me the wsdl looks like ok:
|
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" elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="books">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="book">
<xs:complexType>
|
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
http://msdn2.microsoft.com/en-us/library/ms996381.aspx
Formerly, with classic Microsoft DNA architecture, the ADO Recordset was a
primary transport medium, recommended for transmitting data between
application tiers. In fact, there are whole books written on the subject.
|
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 I added the authentication on the server, now I can not get the
client to authenticate. Can someone tell me how to add authentication info
to the SOAP message posted from the C# SOAP client.
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |