sudzc or wsdl2obj? - iphone

I know this question has been asked several times but the issue here is a little different.
In order for iphone to consume the WSDL, i tried to use wsdl2obj for but got the error as UNSINGED BYTE... during compilation and no help found on this over the internet.
Now when i try using the sudcz wsdl convertor, I am able to parse the wsdl and get the resulting XML but unfortunately, unable to get the rest as sudcz does classes dont read my xml property to generate proper objects.
Any help here?
Regards,
Accilies

I had some of the same problems. I had to setup structures in the web service and used these to return the data from the web service call. I was able to easily parse the returned XML.

Related

How to use WSDL file, parse SOAP message?

This is my first post here(pardon me if I'm vague).
Actually I've got a wsdl file (which have soap requests, schema, generates pojo) and my task is to
1) Integrate that with eclipse .
2) Send the request to the server.
3) get the response back.
4) And parse the response in Java.
And I'm not at all aware of where to start. Someone suggested of using Apache axis with eclipse (I'm not aware of that too).
Thank you for your help, And also please suggest what is the best way of parsing and how to parse a SOAP message that way in JAVA.
A demo will be so much appreciated.
Thank You.... and sorry if I'm expecting too much, I'm newbie :)
Create auto generated classes from WSDL. You can use various tools that help in generate classes from WSDL file ex: JAVAtoWSDL or ApacheAxis.
Once classes has been generated then you can parse request and create response with JAXB, that is marshall and unmarshall.

How to design a SOAP call in MatLab

I'm not clear at all on how to call a web service from MatLab. I'm trying to apply this guide but I don't understand several parts. For instance this.
Where is is specified that it's GET or POST?
What is namespace?
How am I supposed to provide the WSDL file I have?
I'm quite lost so any hint will be appreciated.
If you have access to the web service definition list (WSDL), you can go like this:
wsdl = createClassFromWsdl('http://server.domain/NameOfMethod.asmx?WSDL')
calls = methods(NameOfMethod)
response = HelloWorld(NameOfMethod, "Konrad")
See this info. It's very easy to follow and straight-forward to grasp. I'm surprised myself.
Since you want to use WSDL, you are working from the wrong documentation. You linked to a guide about SOAP.
To learn about WSDL, read this: Access Web Services That Use WSDL Documents. When you use MATLAB's createClassFromWsdl, you don't need to worry about the SOAP implementation. The generated MATLAB class takes care of that.

Consuming a Webservice and Parsing the XML Data in iphone

I am working on a application where my requirement is to consume a webservice and capture the xml data by parsing it. I am not sure about how to consume a webservice and capture the xml data. I am not able to decide which Parser to use to parse the XML. My webservice goes this way "xxxxxxxxxxxxxxxxxxxxxx/test/getTestSchema.cfm?sid=10335&course=ALZ_PATIENT&lesson=991&examtype=R&nStartRow=1&nEndRow=25&videoid=5" . Can anyone please help me out on how to consume a webservice and parse it with a sample code? That would be very helpful. Thanks a lot
We once had used sudzc to consume SOAP based web service in one of our apps. Then used TouchXML to parse the XML returned. It was quite easy and worked very well. sudzc takes WSDL and actually generates code to consume the web service! TouchXML tutorials are abundant on the net.

What's causing this SoapMapper error in VBA Soap Service call?

I'm trying to consume a Java based SOAP web service from VBA code in an Excel 2003 workbook. There are two methods available. One retrieves data, the other uploads data. The service for retrieving data works fine. However, when we try to upload data, we're running into a strange error that I just cannot find good information about on Google. The error message is:
Run-time error '-2147221504 (800040000)';
SoapMapper: Putting data into SoapMapper element failed
If we try to consume the same web service from a .NET application, it looks like the generated classes and methods are slightly different. For example, the fetch data service call takes a DataContainer object which has some identifying properties to determine what data to get. Then it returns the same type of object with the data filled in.
In the VBA classes generated by the Web Reference Toolkit, both fetch and save take the same type of object. But in .NET, the save takes a SaveDataContainerDetails object.
So a couple questions really:
Has anyone seen the SoapMapper error before in their VBA work?
Has anyone seen .NET and VBA generate different method signatures from the same WSDL? What could cause that and how could I work around it?
Is there a better way to call SOAP services from VBA rather than using the Web Reference Toolkit and the SOAP Toolkit?
I've figured out the issue here. The VBA Soap Toolkit and Web References Toolkit just can't handle array's of complex types. The error message above was somewhat misleading because "element" was actually the name of the XML element in the Soap envelope. So it was failing to put data into an element called "element". That was masking the issue a bit.
So I've determined it all boiled down to arrays of complex types. I've also determined that it's MUCH easier to just craft the soap envelopes my self in the VBA. The XML required is generally pretty well structured and not too difficult to create and or parse. So, if you're having trouble with the Soap Toolkit or the Web References Toolkit in VBA... just don't use it! :)
The best way to consume web services from VBA, VBSCRIPT, Classic ASP, etc. is to create your client using .NET. Then turn your client into a COM object. These are easily consumed by these older technologies.

How can I create a SOAP server in Perl?

I'm working with a third-party vendor who unfortunately requires that we set up a SOAP server to handle requests from them. I'm having some trouble finding the best way to go about this. One limitation I'm imposing is that it runs as a mod_perl2 handler. After some searching I've found that the best way may be to use XML::Compile and its SOAP classes but I'm having a tough time wrapping my head around it. Part of the problem is my limited understanding of SOAP and the documentation for most modules seems a bit cryptic to me.
So, can anyone give me some pointers, sample code, anything?
EDIT: we were also given a WSDL file to use, and this was not compatible with SOAP::WSDL ("unsupported global type found in ...
Looks like a rpc/literal WSDL, which is not supported by SOAP::WSDL)
EDIT: XML::Compile::SOAP complains "RPC encoded not supported by this version" when using the WSDL with XML::Compile::WSDL11. Can/should I not worry about the WSDL file?
If you have a limited understanding of SOAP, starting reading about SOAP before you worry about implementing it. There are lots of SOAP tutorials out there. Most of the documentation probably seems cryptic to you because you don't already know SOAP.
It's not that tricky of a process. It's not that different than any other web programming when it comes to the big steps:
You get a SOAP request, which is some XML.
You pull apart the XML to figure out what to do.
You put together some XML to send as a response.
You return the response.
XML::Compile will take care of most of the details for you.
Before you start writing your own server, you might consider writing a client for an existing SOAP server just to give yourself some practice.
I found two modules that can help you make soap server, but I never use its
https://metacpan.org/pod/XML::Compile::SOAP::Daemon
https://metacpan.org/pod/SOAP::WSDL::Server