473,750 Members | 2,209 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Web Services/SOAP(I think) question...

I'm trying to test a web service that I wrote and I'm getting this
exception:

An unhandled exception of type 'System.Invalid OperationExcept ion' occurred
in system.web.serv ices.dll

Additional information: Client found response content type of '', but
expected 'text/xml'.

The Studio points the error to be in "Web References\loca lhost\Reference .vb"
at the "Dim results()..." line

<System.Web.Ser vices.Protocols .SoapDocumentMe thodAttribute(" http://www.source.com/webservices/CreateSourceOrd er",
RequestNamespac e:="http://www.source.com/webservices/",
ResponseNamespa ce:="http://www.source.com/webservices/",
Use:=System.Web .Services.Descr iption.SoapBind ingUse.Literal,
ParameterStyle: =System.Web.Ser vices.Protocols .SoapParameterS tyle.Wrapped),
MimeAttachmentE xtension()> _
Public Function CreateSourceOrd er(ByVal xmlPO As String) As String
Dim results() As Object = Me.Invoke("Crea teSourceOrder", New
Object() {xmlPO})
Return CType(results(0 ), String)
End Function

BTW, the "MimeAttachment Extension()" is part of a 3rd-party product called
Alotsoft MIME SOAP with Attachments Extensions.

Anyone got any ideas?? TIA!

--
TFWBWY...A
Feb 9 '06 #1
2 1002
Bryan,

As you use a thirth party component, than I have seen that it is as to seek
a neeldle in a haystack to find an answer here in these dotnet newsgroups.

Almost all advices ends than in "why don't you contact the maker of that
3-rd party product".

Therefore I do it direct.

Cor
Feb 10 '06 #2
A decent night's rest will often do wonders for your perspective, as it did
for mine. I went back over the code and found the problem--part typo and
part intelli-sense. Thanx anyway!

"Cor Ligthert [MVP]" <no************ @planet.nl> wrote in message
news:%2******** ********@TK2MSF TNGP11.phx.gbl. ..
Bryan,

As you use a thirth party component, than I have seen that it is as to
seek a neeldle in a haystack to find an answer here in these dotnet
newsgroups.

Almost all advices ends than in "why don't you contact the maker of that
3-rd party product".

Therefore I do it direct.

Cor

Feb 10 '06 #3

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

Similar topics

2
326
by: Frazer | last post by:
hi, if my webmethod fails (eg database server is down) how do i send this message back to the caller of the web method. thanx
8
3328
by: Piro | last post by:
I have a class that I want to make accessible to a web service. This class does some work in its constructor method and sets some class variables in its various methods. The problem I am having is creating an instance of this class when it is called via SOAP. I don't seem to have access to the constructor method or any class variables... is this by design? Must all methods be static? Here is my sample code: This is a very dumbed...
1
1091
by: Dacuna | last post by:
Can a Web Service return a dataset? If so, what are the limitations of a Web Service when you compare it to a DCOM DLL? -- Thank you for your help
7
1697
by: Brian P | last post by:
I am working on a new program that uses a SOAP interface. I have written a few of these before, but this time it is giving me trouble. I suspect there is a problem with on the SOAP handler side, but since I'm not an expect I cannot be sure. The vendor has provided me a url to the WSDL document for the soap service. Using the .Net WSDL utility, I generate a c# proxy class. When I'm trying to use the methods of the soap service, I get...
2
2319
by: Wee Bubba | last post by:
i have created a web service with one method which returns a code. i am currently trying to access the return value of this method through a page which has not got the proxy.dll referenced. i.e. as if this request is from an external company. at the moment my method is returning the whole SOAP return message as a string. 2 questions please: 1. how do i just get the value of the node CLIENTCODE. this is the return parameter of my web...
0
1029
by: AndyW | last post by:
Hey folks, I am using PHP5 in the latest xampp distro to write a proof of concept soap application with wsdl and cannot get it to recognise the <types> element. If I comment out the <typeselement and use basic types in the message <part>, all works fine. But if I try and declare a complextype in the <typeselement I get an error message stating unexpected element <schema>.
2
3015
by: lallous | last post by:
Hello, I am new to webservices internals and I used the web service wizard to generate the webservice class and appropriate objects. After issueing a request, I noticed that the SOAP message goes like the following format (example): <?xml version="1.0" encoding="utf-8" ?>
0
973
by: paristhedog | last post by:
I need to create a request with PEAR SOAP with a repeat element. Such as: <items> <item>1</item> <item>2</item> </items> Any help appreciated.
4
1209
by: =?Utf-8?B?Um9iIE1pbGxtYW4=?= | last post by:
I am developing a C# client app using VS 2008 that consumes a 3rd party web service. My question is how/where in my IDE/Debugging session can I visually see the actual XML message that is being sent to the web service? To debug specific cases, the other party wants to see the XML that is being submitted. Any help is appreciated.
5
1022
by: CSharper | last post by:
I have an asp page (please don't ask me why), I would like to consume a .net web services. What is the best way to consume the web service? Is it using com component or using vbscript? Could the experts shead some light into this dark area for me? Thanks always.
0
8999
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9394
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 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...
1
9338
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,...
0
9256
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6803
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6080
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4712
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...
0
4885
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3322
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 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.