soap

SOAP, using prefixes in tags <xx:tag>

I am bad with SOAP. A third party SOAP service gave me example code to use for their api. The code that they give (which I copied to my solution EXACTLY) does not spit out a required prefix before all the tags. Right now, the code they give me causes me to make requests/responses that have no prefix to all the tags... <tagName /> . H...

how can you deploy an XBAP app with WCF connection to Self hosted service using Windows identity for authorization?

I'm having trouble finding coherent information about this deployment option for a client-server application: Client side: partial trust XBAP client windows authentication for single signon Server side: self hosted WCF service running in a windows service performing custom role authorization based on a custom authorization policy ...

How to execute a jax-ws soap request from a string or inputstream

Hi, I am using jax-ws ri (metro) and would like to execute a webservice call without an http container. I have an XML file containing the SOAP message (exactly the same as the HTTP POST BODY) and would like to execute in the same virtual machine a soap action. How can I do this? SOAP MESSAGE AS XML FILE -> WS Endpoint or Port -> SOAP M...

Error generating proxy with svcutil

Hi, I'm building a contract-first SOAP client. When I try to generate the proxy classes with svcutil, I get the error messages listed below and no classes are generated. Some of the error messages are in Dutch, but they're similar to the errors in this question on MSDN. The poster of that question provides the following solution: [....

Generating Python soaplib stubs from WSDL

Hi, I'd like to generate a stub SOAP web service class using the Python soaplib module, based on an existing WSDL. The idea is to generate a mock for a third party web service. Does any such code generator exist, or must we write our own? Martin ...

wsdl2objc problem

i am trying to use wsdl2objc with this soap webservice.But when am using it in my iphone project , am getting this error. Undefined symbols: ".objc_class_name_ndfdXML", referenced from: literal-pointer@_OBJC@_cls_refs@ndfdXML in HomeViewController.o ld: symbol(s) not found collect2: ld returned 1 exit status Here i used ndfdXM...

Accessing WebServices methods fails on instantiating object

Hi, I'm using C# to invoke some webservices operations. I create the client like so: EnterpriseSoapPortClient clientEnterprise = new EnterpriseSoapPortClient(); And after this, I invoke the method like this: clientEnterprise.GetSites() The error I get is this: WSDLOperation: Instantiating the dispatch object for method GetSites f...

IHttpModule Init not fired

Hi, I have got problem with contextInfo [WebMethod] [SoapHeader("UserInfo", Direction = SoapHeaderDirection.In)] public void TestContext() { var user = ContextInfo.Current.User.LoginName; } UserInfo _userInfo; [System.Xml.Serialization.SoapElement(IsNullable = true)] public UserInfo UserInf...

Error returning a valid object back from viewSubscription() from php soap request

Hello, I am trying to connect to Yudu's web service via soap/php. When I send this test, I am getting the following fault response and code: ERROR: env:Server-java.lang.RuntimeException: com.yudu.webservice.InternalError If I dont specify a subscriptionId I get the following fault: Client-SOAP-ERROR: Encoding: object hasn't 'subscrip...

SOAP Web services: object aliasing in response?

If a web service returns an object graph where some objects appear multiple times, will the data about these objects necessarily be duplicated in the transport format? Put differently: With Java serialization, each object's state is written only once, and subsequent references to that object are mere pointers within the serialization st...

How to add XML to SOAP request in Flex

I have a Flex service defined like so: <mx:operation name="postTableDetails" resultFormat="e4x" result="event.token.resultHandler(event);" fault="event.token.faultHandler(event);"> <mx:request> <catalog></catalog> <schema></schema> <table></table> <details></details> Anyway, ...

Whats the best way to offer SOAP/XML + REST/JSON?

I'm creating a general purpose web service that is likely to have a number of different clients, some of which I cannot anticipate at this time. I already have a nice Java Services API and am looking to provide a web services facade on top of that. There are great arguments on both sides of the SOAP vs REST debate and it leaves me wond...

What is the "Best Practice" for SOAP servers to implement error notification?

I am developing some SOAP web services using Ruby on Rails and considering how to handle generic failures. These generic errors are applicable to all the methods within the service and include the following :- Missing Request element Missing Authentication element (Custom) Invalid Authentication details I can intercept these errors w...

setProperty must be overridden by all subclasses of SOAPMessage

Hello! My environment is: Windows7 32, jboss-5.1.0.GA, jdk1.6.0_20. When trying to run a SOAP-message I get the following error: In short: #java.lang.UnsupportedOperationException: setProperty must be overridden by all subclasses of SOAPMessage Whole error: http://pastebin.com/zjF6wsF9 I can not figure out how to solve this. I've...

Parsing ksoap2 response

Hello everybody. I use a ksoap2 lib for communicating from android client with SOAP web service. Great job was done by ksoap team, but the problem is, there is no any good example how to use it correct in different aspects. For instance I get in soap response following data: anyType{ StatusSetting=anyType{Id=1; Name=Til afskrivning;...

Error with XSL validation of Javascript

Hello, I am getting validation errors such as: "No processing instruction starts with 'xml...." when I try to validate my code before I put it into the 3rd party app I'm using. How do I send a soap message with Javasript that is embedded on an XSL page without getting this error ? Here is the code in question: <script language="javascr...

ksoap2 android sending data

Hello everyone I'm trying to get ksoap2 working on android. I have spent at least 10 hours now reading forum posts, and documentations. Just querying some methods like getServerTime where I don't have to send any values, works. My goal is to send data, and receive a response. For example: send city name, get city time. I'm practicing o...

JAX-WS Password Type PasswordText

I've got a simple command line Java JAX-WS app to test a SOAP request, but the server is expecting the Password Type to be PasswordText and I'm stumped on how to set this... The code looks like so: @WebServiceRef private static final HelloService helloService = new HelloService(url, new QName( URL, "HelloService")); public sta...

Using Salesforce WSDL in iPhone app

Hi I've just started using Salesforce and would like to use the Salesforce API in my iPhone app to submit data from the app to the instance. I generated the WSDL and know the XML field names which I have to send in the SOAP payload. But I haven't been able to figure out how exactly to send the request. I generated the SOAP payload, se...

SOAP client in C# ASP.NET - references or examples?

Background: I am creating a webservices site which will provide many types of simple services over SOAP and possibly other protocols too. The goal is to make it easy to do for example conversions, RSS parsing, spam checks and many other types of work. The site will be targeted mostly at beginner developers. My Problem: I have never de...