High and Low Level Api
hello, can anyone tell what is High level api and Low level api in soap. regards bineet --- Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail from your records.
secure method calling
Hello, I am trying to setup services that will take into consideration security, will not let just anyone call methods on the server. What is the best way to do it? Would it be taking in username/password and sending back a cookie or .. ? Could you please help me out with this, any articles or sample code would be great. Thank you. Oleg
RE: High and Low Level Api
Hi, SOAP is an XML RPC protocol. So, you have the schema of SOAP message and you can use XML parser to send, receive and analyse SOAP message, wich is boring !! All SOAP actors (MS, IBM) make severals API to help developpers. In general you find 2 level API: Low: You'll find methods like makeHeader(..), makeBody(...) -- You have to know the SOAP message structure High: You known nothing about SOAP Message but you have a WSDL file. In this case, in few lines, you can invoke a service. 1st line: Get the WSDL description file MS: mssoapinit(...) IBM: ServiceProxyFactory.getServiceProxy(service, port, wsdl); 2nd line: Invoke a method from the previous build proxy MS: myProxy.getName() IBM: myProxy.invoke("getName",args); Hope that helps Jean-Louis
Re: MS-SOAP with SSL
Hello, I seem to have the same problem, but no answer. Is there anybody who has made work such a constellation? Hartmut Putti Tang. wrote: Hello, I have set up SSL on my IIS but I can't use SOAPClient to connect to WSDL via https. It shows me the error about Security. Have anyone found this problem like me? How can I fixed it? Thanks in advance. Putti Tang.
Re: High and Low Level Api
hi, thanxs a lot jean that was really very informative. regards bineet - Original Message - From: Jean-Louis Vila To: [EMAIL PROTECTED] Sent: Friday, October 05, 2001 1:20 PM Subject: RE: High and Low Level Api Hi, SOAP is an XML RPC protocol. So, you have the schema of SOAP message and you can use XML parser to send, receive and analyse SOAP message, wich is boring !! All SOAP actors (MS, IBM) make severals API to help developpers. In general you find 2 level API: Low: You'll find methods like makeHeader(..), makeBody(...) -- You have to know the SOAP message structure High: You known nothing about SOAP Message but you have a WSDL file. In this case, in few lines, you can invoke a service. 1st line: Get the WSDL description file MS: mssoapinit(...) IBM: ServiceProxyFactory.getServiceProxy(service, port, wsdl); 2nd line: Invoke a method from the previous build proxy MS: myProxy.getName() IBM: myProxy.invoke("getName",args); Hope that helps Jean-Louis --- Information transmitted by this E-MAIL is proprietary to Wipro and/or its Customers and is intended for use only by the individual or entity to which it is addressed, and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If you are not the intended recipient or it appears that this mail has been forwarded to you without proper authority, you are notified that any use or dissemination of this information in any manner is strictly prohibited. In such cases, please notify us immediately at mailto:[EMAIL PROTECTED] and delete this mail from your records.
unsubscribe me
Please, unsubscribe me.
Weblogic6.1 and SOAP
Hi, I have successfully deployed my User stuff in weblogic6.1 as can be seen from the http://localhost:7001/soap/admin/index.html .However when I to test running my test program I get the below given error. Generated fault: Fault Code = SOAP-ENV:Client Fault String = Deployment error in SOAP service 'urn:User': class name 'com.accelrys.UserData' could not be resolved: com.accelrys.UserData I have attached the deployment descriptor as well. I was able to run the same program on tomcat. Any suggestions please. Amila. mailto:[EMAIL PROTECTED] isd:service xmlns:isd=http://xml.apache.org/xml-soap/deployment; id=urn:User isd:provider type=java scope=Application methods=getNamesAsStrings getUserByUserName isd:java class=com.accelrys.UserTableSoapHandler static=false/ /isd:provider isd:faultListenerorg.apache.soap.server.DOMFaultListener/isd:faultListener isd:mappings isd:map encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xmlns:x=urn:xml-UserData qname=x:udat javaType=com.accelrys.UserData java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer/ isd:map encodingStyle=http://schemas.xmlsoap.org/soap/encoding/; xmlns:x=urn:xml-Name qname=x:n javaType=com.accelrys.Name java2XMLClassName=org.apache.soap.encoding.soapenc.BeanSerializer xml2JavaClassName=org.apache.soap.encoding.soapenc.BeanSerializer/ /isd:mappings /isd:service
RE: SOAP..I want more
At this point, it is basically up to you: how you write and configure your services. sometime in the future, I can envision a more advanced SOAP service container that does things like activation and passivation. francis -Original Message- From: Gaurav [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 6:29 AM To: [EMAIL PROTECTED] Subject: SOAP..I want more Hi SOAPers, We know that SOAP does not have sophisticated facilities like distributed garbage collection, object by reference passing etc like other wire protocol (JRMP, ORPC etc). But then how do we take care of things like distributed garbage collection in webservices?? Anybody has any idea!! Thanks.
RE: Weblogic6.1 and SOAP
I went through similar setups yesterday, and everything worked great once I have all the appropriate jars and classes in my classpath. It appears that if you change your classpath environment variable, you should stop and start tomcat too. -Original Message- From: Amila Norbert [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 6:34 AM To: [EMAIL PROTECTED] Subject: Weblogic6.1 and SOAP Hi, I have successfully deployed my User stuff in weblogic6.1 as can be seen from the http://localhost:7001/soap/admin/index.html .However when I to test running my test program I get the below given error. Generated fault: Fault Code = SOAP-ENV:Client Fault String = Deployment error in SOAP service 'urn:User': class name 'com.accelrys.UserData' could not be resolved: com.accelrys.UserData I have attached the deployment descriptor as well. I was able to run the same program on tomcat. Any suggestions please. Amila. mailto:[EMAIL PROTECTED]
RE: Weblogic6.1 and SOAP
Thanks Eric. The problem I am having with Weblogic ont with tomcat. I got everyting to work on tomcat. I have my cliet and server classes in jar files and have palced them in the corresponding lib directories as well. Is there any weblogic configurations I have missed here? Amila. -Original Message- From: Dahnke, Eric [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 4:00 PM To: '[EMAIL PROTECTED]' Subject: RE: Weblogic6.1 and SOAP I went through similar setups yesterday, and everything worked great once I have all the appropriate jars and classes in my classpath. It appears that if you change your classpath environment variable, you should stop and start tomcat too. -Original Message- From: Amila Norbert [mailto:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001 6:34 AM To: [EMAIL PROTECTED] Subject: Weblogic6.1 and SOAP Hi, I have successfully deployed my User stuff in weblogic6.1 as can be seen from the http://localhost:7001/soap/admin/index.html .However when I to test running my test program I get the below given error. Generated fault: Fault Code = SOAP-ENV:Client Fault String = Deployment error in SOAP service 'urn:User': class name 'com.accelrys.UserData' could not be resolved: com.accelrys.UserData I have attached the deployment descriptor as well. I was able to run the same program on tomcat. Any suggestions please. Amila. mailto:[EMAIL PROTECTED]
WSDL Problem
Hi I have created a java class which has one method square taking a double and returning a double. I have deployed this class to SOAP. I have genereated WSDL via IBM wstk tool. I am using WSIF to try and dynamically read the WSDL and invoke the method, but I cant seem to call it without making some changes to the WSDL that was generated. If I add tns: to port binding i.e. port binding = tns:MathXBinding, and also before operation name, I find I can call the service. Problem is I can't seem to get the IBM tool to generate my WSDL with tns: in front of these definitions. I have included the original WSDL file, perhaps some WSDL heads can have a look and suggest something. (See attached file: MathX.wsdl) Thanks, Keith Diese Nachricht ist vertraulich. Sie ist ausschliesslich fuer den im Adressfeld ausgewiesenen Adressaten bestimmt. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir um eine kurze Nachricht. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Da wir nicht die Echtheit oder Vollstaendigkeit der in dieser Nachricht enthaltenen Informationen garantieren koennen, schliessen wir die rechtliche Verbindlichkeit der vorstehenden Erklaerungen und Aeusserungen aus. Wir verweisen in diesem Zusammenhang auch auf die fuer die Bank geltenden Regelungen ueber die Verbindlichkeit von Willenserklaerungen mit verpflichtendem Inhalt, die in den bankueblichen Unterschriftenverzeichnissen bekannt gemacht werden. This message is confidential and may be privileged. It is intended solely for the named addressee. If you are not the intended recipient please inform us. Any unauthorised dissemination, distribution or copying hereof is prohibited. As we cannot guarantee the genuineness or completeness of the information contained in this message, the statements set forth above are not legally binding. In connection therewith, we also refer to the governing regulations of WestLB concerning signatory authority published in the standard bank signature lists with regard to the legally binding effect of statements made with the intent to obligate WestLB. MathX.wsdl
RE: WSDL Problem
I've had the same problem when using the wsdl4j toolkit. If you step through the Definition returned from the wsdl4j toolkit, you'll find that it doesn't find the referenced binding node - because it is looking in a different namespace. I've found this problem with a good subset of the wsdl files from xmethods. Given that you are generating the wsdl from another tool in the wstk, I'd classify it as a bug with the generating tool. I'm also not sure about what the correct syntax as per the wsdl spec is, anyone have any pointers on that? Should the binding reference always be namespace qualified or not? If you can find an easy way around this please let me know! I've resorted to doing basic xml tree searching for the time being which is far from ideal :) Regards, Neil -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: 05 October 2001 17:24 To: [EMAIL PROTECTED] Subject: WSDL Problem Hi I have created a java class which has one method square taking a double and returning a double. I have deployed this class to SOAP. I have genereated WSDL via IBM wstk tool. I am using WSIF to try and dynamically read the WSDL and invoke the method, but I cant seem to call it without making some changes to the WSDL that was generated. If I add tns: to port binding i.e. port binding = tns:MathXBinding, and also before operation name, I find I can call the service. Problem is I can't seem to get the IBM tool to generate my WSDL with tns: in front of these definitions. I have included the original WSDL file, perhaps some WSDL heads can have a look and suggest something. (See attached file: MathX.wsdl) Thanks, Keith Diese Nachricht ist vertraulich. Sie ist ausschliesslich fuer den im Adressfeld ausgewiesenen Adressaten bestimmt. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir um eine kurze Nachricht. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Da wir nicht die Echtheit oder Vollstaendigkeit der in dieser Nachricht enthaltenen Informationen garantieren koennen, schliessen wir die rechtliche Verbindlichkeit der vorstehenden Erklaerungen und Aeusserungen aus. Wir verweisen in diesem Zusammenhang auch auf die fuer die Bank geltenden Regelungen ueber die Verbindlichkeit von Willenserklaerungen mit verpflichtendem Inhalt, die in den bankueblichen Unterschriftenverzeichnissen bekannt gemacht werden. This message is confidential and may be privileged. It is intended solely for the named addressee. If you are not the intended recipient please inform us. Any unauthorised dissemination, distribution or copying hereof is prohibited. As we cannot guarantee the genuineness or completeness of the information contained in this message, the statements set forth above are not legally binding. In connection therewith, we also refer to the governing regulations of WestLB concerning signatory authority published in the standard bank signature lists with regard to the legally binding effect of statements made with the intent to obligate WestLB.
Parsing the S:Body XML within a SOAP request.
Hello when going through ../soap-2_2/samples/messaging/POProcessor package samples.messaging; import java.io.*; import org.apache.soap.*; import org.apache.soap.rpc.SOAPContext; import javax.mail.MessagingException; public class POProcessor { public void purchaseOrder (Envelope env, SOAPContext reqCtx, SOAPContext resCtx) throws MessagingException, IOException { resCtx.setRootPart(OK. Original XML received.,text/xml); } public void bustedRequest (Envelope env, SOAPContext reqCtx, SOAPContext resCtx) throws Exception { throw new IllegalArgumentException (Broken SOAP v1.1 Request.); } } In the org.apache.soap.messaging.Message class what method would I use to read/receive the XML contained in S:Body. I've got a SAXParseHandler class that can read in (parse) an XML input stream from a URL or a local file. You see what I what to do here. Can anyone point me in the right direction? Regards, Eric
ms soap -- apache soap
We have been running an java apache soap client to a java apache soap server successfully since it was owned by IBM. :-) Well know we have a client that is a C++ shop and I have to write a C++ soap client. Well, not write one, but use one. I have chosen the MS Soap Toolkit. Without getting into the specifics - I know this is not the MS SOAP tookit list - I would like to know if anyone out there has made this happen. I am getting really close. However, the low-level ms soap api don't let me specify a type of an element such as userID xsi:type=xsd:stringaUserID/userID they only allow to specify a name, a namespace uri, an encoding style, and a prefix. prefix:userID xmlns:ns_uri encodingStyle=encaUserID/prefix:userID Is there a way to make these two forms say the same thing? TIA, Chris Bono [EMAIL PROTECTED] 512.531.8518 http://www.zilliant.com
RE: Help with parameters in Apache SOAP client and .NET SOAP service
Title: RE: Help with parameters in Apache SOAP client and .NET SOAP service I have a java SOAP 2.2 client talking to a .Net service. I did not have any problems with the Request, but the Response was a pain. After the .Net Service identified the response with a String attribute and I used the SOAPMappingRegistry, all was fine. However with Regards to my Request code - I am not importing an XML doc, but constructing one using a Vector of Parameter objects. I do not specify an XSI within the params - only the element, class type, value and the Constants.NS_URI_SOAP_ENC encoding. So my client is essentially creating the same XML as your .Net friends want. But on a philosophical note, it is the service that dictates the format of the Request. As lond as there is not MS proprietary plumbing, then why argue. -Original Message- From: John Bowen To: soap user Sent: 10/04/2001 3:09 PM Subject: Help with parameters in Apache SOAP client and .NET SOAP service Hi all, I'm pulling my hair out trying to get my Apache SOAP [v2.2] client working with a .NET asmx service. When I send my SOAP request the server reads the parameters I'm passing it as null values and rejects my requests no matter what data I fill these parameters with. We're arguing back and forth on whose XML is at fault, and I need some opinions on if my client request is at least SOAPvalid or not. Unfortunately the SOAP server isn't in-house, it's another company and I don't have control or can even snoop around the box. After a few days of headaches and searching Google I did fix one of the interoperability problems by creating a new StringDeserializer to get around that pesky deserializer exception thrown when the .NET service doesn't return xsi:type information with the response. Here is the XML I'm sending as a request: -- POST /userservice/userservice.asmx HTTP/1.0 Host: www.candyland.com Content-Type: text/xml; charset=utf-8 Content-Length: 655 SOAPAction: http://www.candyland.com/soap_MakeNewUser ?xml version='1.0' encoding='UTF-8'? SOAP-ENV:Envelope xmlns:SOAP-ENV=http://schemas.xmlsoap.org/soap/envelope/ xmlns:xsi=http://www.w3.org/1999/XMLSchema-instance xmlns:xsd=http://www.w3.org/1999/XMLSchema SOAP-ENV:Body ns1:soap_MakeNewUser xmlns:ns1=http://www.candyland.com SOAP-ENV:encodingStyle=http://schemas.xmlsoap.org/soap/encoding/ User_Name xsi:type=xsd:stringmyUserName/User_Name User_Password xsi:type=xsd:stringmyPassword/User_Password Email_Address xsi:type=xsd:string[EMAIL PROTECTED]/Email_Address /ns1:soap_MakeNewUser /SOAP-ENV:Body /SOAP-ENV:Envelope -- The argument the .NET programmer makes is that his .NET server expects just User_Namename/User_Name, but the spec I read on w3.org tells me there's no problem with including the xsi:type information in my parameters. This shouldn't be this difficult, my code is based on the few examples I've found on the net on doing this and it seems relatively straightforward. Anyone with ideas or had similar problems with Apache SOAP clients and .NET services before? - John
RE: ms soap -- apache soap
Here is a vb snippet that did it for me. I suppose the same set of calls should work the same in C++. Serializer.startElement string1 Serializer.SoapAttribute type, , xsd:string, xsi Serializer.writeString client 1 Serializer.endElement Rick Hansen We have been running an java apache soap client to a java apache soap server successfully since it was owned by IBM. :-) Well know we have a client that is a C++ shop and I have to write a C++ soap client. Well, not write one, but use one. I have chosen the MS Soap Toolkit. Without getting into the specifics - I know this is not the MS SOAP tookit list - I would like to know if anyone out there has made this happen. I am getting really close. However, the low-level ms soap api don't let me specify a type of an element such as userID xsi:type=xsd:stringaUserID/userID they only allow to specify a name, a namespace uri, an encoding style, and a prefix. prefix:userID xmlns:ns_uri encodingStyle=encaUserID/prefix:userID Is there a way to make these two forms say the same thing? TIA, Chris Bono [EMAIL PROTECTED] 512.531.8518 http://www.zilliant.com