Professional Documents
Culture Documents
Location: http://www.jguru.com/faq/SOAP
Ownership: http://www.jguru.com/misc/user-agree.jsp#ownership.
Are there any mailing lists where one can learn more about SOAP?
Location: http://www.jguru.com/faq/view.jsp?EID=96421
Created: Jul 5, 2000 Modified: 2000-07-05 11:43:26.214
Author: John Zukowski (http://www.jguru.com/guru/viewbio.jsp?EID=7)
DevelopMentor runs a list. You can subscribe and read the archives at
http://discuss.develop.com/soap.html.
Comments and alternative answers
The DevelopMentor SOAP FAQ is probably the best place to start. Microsoft also has a
SOAP FAQ.
What is XML-RPC and how is it different from SOAP (Simple Object Access
Protocol)?
Location: http://www.jguru.com/faq/view.jsp?EID=201434
Created: Sep 8, 2000 Modified: 2000-09-18 07:49:45.587
Author: Ron Kurr (http://www.jguru.com/guru/viewbio.jsp?EID=132270) Question
originally posed by Sesh Jalagam
(http://www.jguru.com/guru/viewbio.jsp?EID=41325
In XML-RPC you send an XML document over HTTP that describes a method on an
object to call. The response from the method is also an XML document. Why do this?
XML and HTTP are language independent. This allows a server written in Java
running on a Unix box to service requests from a Visual Basic program running under
Windows 95. All languages deal with strings (XML) and a lot of them have libraries
for dealing with HTTP, which makes for nice interoperability. The tradeoff, of course,
is speed. A binary data stream is probably faster but it is harder to get the platform
independence that XML-RPC gives. You can learn more from the XML-RPC website.
XML-RPC vs SOAP
Author: Ben Soedjono (http://www.jguru.com/guru/viewbio.jsp?EID=503607), Oct 2, 2001
There is a great explanation on Webservices.org FAQ for XML-RPC at
http://www.webservices.org/modules.php?op=modload&name=FAQ&file=index&myfaq=yes&id_cat=10
RPC+v1.0
It's not simple question and to completely answer this question you need good study.
At first I want point you on one very good bookmark page Cetus Links. And now my
answer:
What is SOAP?
Location: http://www.jguru.com/faq/view.jsp?EID=469776
Created: Aug 5, 2001
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
SOAP is an abbreviation for Simple Object Access Protocol. According to W3C Note
on SOAP:
http://msdn.microsoft.com/soap/
Apache AXIS
Apache SOAP 2.2
Are there some articles that i can help me jumpstart my Java based SOAP
project?
Location: http://www.jguru.com/faq/view.jsp?EID=472879
Created: Aug 9, 2001
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
Where can i find a list of publicly accessible web services available using
SOAP?
Location: http://www.jguru.com/faq/view.jsp?EID=473937
Created: Aug 10, 2001
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
http://www.xmethods.com/index.html
with regards
• Web Services: Building Reusable Web Components with SOAP and ASP .NET
• A Young Person's Guide to The Simple Object Access Protocol: SOAP
Increases Interoperability Across Platforms and Languages
• SOAP Toolkit 2.0: New Definition Languages Expose Your COM Objects to
SOAP Clients
• .NET Anywhere With Pocket SOAP
• Develop a Web Service: Up and Running with the SOAP Toolkit for Visual
Studio
• Build Secure Web Services
Can i mix and match SOAP Servers and SOAP Clients developed using
toolkits from different vendors? What are the problems/Issues? Isn't this
why SOAP was developed in the first place?
Location: http://www.jguru.com/faq/view.jsp?EID=474106
Created: Aug 11, 2001
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
Where can i find sample code for a simple, general purpose SOAP client in
Java that uses no specialized SOAP libraries?
Location: http://www.jguru.com/faq/view.jsp?EID=479118
Created: Aug 18, 2001 Modified: 2001-08-18 19:27:55.623
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
Here are some pointers to sample java code that do not use any toolkits:
Are there tools to look at the SOAP messages between my client and the
server?
Location: http://www.jguru.com/faq/view.jsp?EID=479122
Created: Aug 18, 2001
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
There are tools like proxyTrace that allow you to debug the SOAP messages.
Tunneling through the corporate network shows you how to implement HTTP
tunneling with servlets.
Has Microsoft bundled support for a SOAP Client with Windows XP?
Location: http://www.jguru.com/faq/view.jsp?EID=479126
Created: Aug 18, 2001
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
Apache SOAP has a TCP tunneling GUI that can be used. More information can be
found at:
http://www-106.ibm.com/developerworks/webservices/library/ws-
peer3/?dwzone=ws
Comments and alternative answers
I'm just getting started with SOAP. Where can I find tutorials on SOAP
programming?
Location: http://www.jguru.com/faq/view.jsp?EID=493361
Created: Sep 9, 2001
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
What are the namespaces that are usually used in SOAP messages? Where
can i get more information about them?
Location: http://www.jguru.com/faq/view.jsp?EID=493362
Created: Sep 9, 2001
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
• 1. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
• 2. xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
• 3. xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
• 4. xmlns:xsd="http://www.w3.org/1999/XMLSchema"
Can i mix SOAP, SSL and digital signatures? Where can i read up about how
to do it?
Location: http://www.jguru.com/faq/view.jsp?EID=493363
Created: Sep 9, 2001
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
Are there toolkits that automatically generate service proxy code from a
WSDL service description?
Location: http://www.jguru.com/faq/view.jsp?EID=493364
Created: Sep 9, 2001
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
No, Tomcat has no built-in support for Web Services. However, since Web Services
are all built on HTTP, it is possible to write your own SOAP or XML-RPC servlet.
Comments and alternative answers
Does Tomcat support EJB? Pls help me, why Tomcat can't find my servlet.class
Author: Nguyen Van Tuyen (http://www.jguru.com/guru/viewbio.jsp?EID=726795),
Jan 19, 2002
I wonder if Tomcat support EJB or not, if I want to use EJB, what can I do? Pls help
me, why Tomcat can't find my servlet.class, when i put it in /ROOT/WEB-INF/classes
and in my sever.xml I added: <Context path="/servlet" docBase="ROOT/WEB-
INF/classes" debug="0" reloadable="true" />
URL:http://localhost:8080/servlet/HelloWorld. But it didn't work.
Re: Does Tomcat support EJB? Pls help me, why Tomcat can't find my
servlet.class
Author: brian ally (http://www.jguru.com/guru/viewbio.jsp?EID=757490), Feb 13,
2002
if you want to use EJB with tomcat, you need to install with JBoss.
http://www.jboss.org
PushToTest is a free open-source utility for testing SOAP-based Web services for
scalability and performance.
What are Web Services? What are the Web Services Standards?
Location: http://www.jguru.com/faq/view.jsp?EID=531593
Created: Oct 26, 2001
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
• UDDI
• SOAP
• WSDL
• ebXML
Developer's Guide to Building XML-based Web Services with the Java 2 Platform,
Enterprise Edition (J2EE)
Where can i find a sample SOAP client using Apache SOAP for Java?
Location: http://www.jguru.com/faq/view.jsp?EID=559986
Created: Nov 24, 2001
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
http://www.soapuser.com/client2.html
What is UDDI?
Location: http://www.jguru.com/faq/view.jsp?EID=559993
Created: Nov 24, 2001
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
Ariba, IBM, and Microsoft developed the first version of UDDI, the Universal
Description, Discovery and Integration specification. As the name suggests, UDDI
allows a business to describe the services it offers and to discover and interact with
other services on the Web.
Why would any user dynamiclly look for a web service? Before choosing
a web service, wouldn't he like to know
1. What are all the web services of his interest?
2. Analyze each/few of the web services, like will the web service
suit his requiements or is it financially feasible for him, so on
Does UDDI cater to all this? If this is what UDDI provides, does
every client has to write his own code into making all these
inquires? Isnt a web service search site common for all users
required?
What is WSDL?
Location: http://www.jguru.com/faq/view.jsp?EID=559994
Created: Nov 24, 2001
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
WSDL is a language for describing the capabilities of Web services. Proposed by IBM
and Microsoft, WSDL combines the best of IBM’s NASSL (Network Accessible Services
Language) and Microsoft SOAP Contract Language. WSDL is based on XML and is a
key part of the UDDI initiative. The WSDL document specification helps improve
interoperability between applications, regardless of the protocol or the encoding
scheme. The WSDL 1.1 specification defines WSDL as “an XML grammar for
describing network services as collections of communication endpoints capable of
exchanging messages.”
Suppose your proxy server is called "proxy.foo.com" and it is on port 9999. There are
a couple of ways of configuring Apache to use a proxy. One solution is to use the JVM
capabilities to deal with proxies:
System.getProperties().put("proxySet","true");
System.getProperties().put("proxyHost","proxy.foo.com");
System.getProperties().put("proxyPort","9999");
For socks based proxy server:
System.getProperties().put("socksProxyHost","socks.foo.com");
System.getProperties().put("socksProxyPort","1080");
Another solution is to tell TOMCAT to the proxying via the variable TOMCAT_OPTS),
for HTTP proxies:
set TOMCAT_OPTS="-DproxyHost=proxy.foo.com -DproxyPort=9999"
For socks:
set TOMCAT_OPTS="-DsocksProxyHost=socks.foo.com -DsocksProxyPort=1080"
Comments and alternative answers
Is SOAP secure?
Location: http://www.jguru.com/faq/view.jsp?EID=559997
Created: Nov 24, 2001
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
SOAP is as secure as HTTP is...SOAP travels across HTTP and enters via port 80, as
does HTTP. The only difference is that a SOAP message carries a payload of XML,
whereas HTTP would normally carry a payload of HTML/Javascript etc. SOAP
messages are very clear about there intent and declare this in their headers. Your
firewall can read these headers and decide what to do. Your application when it
receives the message should then examine the SOAP message to make sure that the
headers match what is in the payload. SOAP can run over HTTPS (SSL) with no
problems.
How to send attachment using soap? Where can I find article or example on
how to send attachment using soap?
Location: http://www.jguru.com/faq/view.jsp?EID=578090
Created: Dec 9, 2001
Author: Filip Defoort (http://www.jguru.com/guru/viewbio.jsp?EID=550566)
Question originally posed by CY See
(http://www.jguru.com/guru/viewbio.jsp?EID=529734
regards
Location: http://www.jguru.com/faq/view.jsp?EID=578091
Created: Dec 9, 2001
Author: Ronald van Kuijk (http://www.jguru.com/guru/viewbio.jsp?EID=339049)
Question originally posed by Vijay Kumar PREMIUM
(http://www.jguru.com/guru/viewbio.jsp?EID=264226
the link what u have provided, doesnot conatain any implementation yet.
Author: Vijay Kumar (http://www.jguru.com/guru/viewbio.jsp?EID=264226), Dec
10, 2001
Thanks Mr.Ronald
The link what u have provided, doesnot conatain any implementation yet, so it is of
no use to me. and also the JavaTM XML Pack contains some examples but i think it
doesnot fully comply with ebXML specification (ebXML MS 1.0)
any comments please
Re: the link what u have provided, doesnot conatain any implementation yet.
Author: Ronald van Kuijk
(http://www.jguru.com/guru/viewbio.jsp?EID=339049), Dec 10, 2001
http://sourceforge.net/projects/openebxml contains source... look in CVS
overthere as well. R.
Is there a white paper that provides an overview of the web services APIs
currently available or soon to be available from SUN?
Location: http://www.jguru.com/faq/view.jsp?EID=578093
Created: Dec 9, 2001
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
http://java.sun.com/xml/webservices.pdf
What is JAX-RPC? What is JAXM? What is the difference between the two?
Location: http://www.jguru.com/faq/view.jsp?EID=578095
Created: Dec 9, 2001
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
JAX/RPC
To aid developers in building XML-based requests such as SOAP requests, The JCP is
developing the Java APIs for XML based RPC (JAX/RPC). JAX/RPC is used for sending
and receiving (including marshalling and unmarshalling) method calls using XML-
based protocols such as SOAP, or others such as XMLP (XML Protocol. For more
information, see http://www.w3.org/2000/xp/). JAX/RPC isolates you from the
specifics of these protocols, enabling rapid application development. There is no
longer any need for developers to interact directly with the XML representation of the
call.
JAXM
When receiving a web service request from say a business partner, we need a Java
API to process XML messages, in a similar way to how we processed SOAP requests
using JAX/RPC. The Java API for XML Messaging (JAXM) is a forthcoming specification
for interacting with XML messaging standards such as ebXML messaging and SOAP
messaging. This API is designed to facilitate the processing of XML message
protocols, particularly those where a predetermined “contract” exists (ebXML in
particular) to determine the format and constraints of the message. This API will
handle all the “envelope” information, such as routing information and the “cargo”
manifest, in an intuitive way separate from the actual payload of the message. This
allows developers to focus on interacting with the payload and not worry about the
other message administrivia.
Difference
The difference between JAXM and JAX/RPC is analogous to the difference between
message-oriented middleware (MOM) and remote procedure calls (RPCs). JAXM is
geared toward message-oriented middleware-type applications, while JAX/RPC is
designed specifically for RPC behavior.
How can i find SOAP Services that other people/companies have exposed?
Location: http://www.jguru.com/faq/view.jsp?EID=585938
Created: Dec 15, 2001
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
• UDDI
• ebXML
Can i use JAXM to run a UDDI Query against say IBM's UDDI Registry?
Location: http://www.jguru.com/faq/view.jsp?EID=727494
Created: Jan 20, 2002 Modified: 2002-01-21 07:36:05.774
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
Here's a stand-alone JAXM Client that can connect to IBM's UDDI Registry found at
https://www-3.ibm.com/services/uddi/protect/registry.html.
import javax.xml.soap.*;
import javax.xml.messaging.*;
import java.util.*;
import java.io.*;
// Create a message
SOAPMessage msg = msgFactory.createMessage();
URLEndpoint endpoint
= new URLEndpoint("http://www-
3.ibm.com/services/uddi/testregistry/inquiryapi");
msg.saveChanges();
connection.close();
} catch (Exception ex) {
ex.printStackTrace();
}
}
}
Can i have a sample JAXM Client that connects to say a Stock Quote Service
from XMethods.net?
Location: http://www.jguru.com/faq/view.jsp?EID=727495
Created: Jan 20, 2002
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
Here's a sample JAXM Client that connects to "Delayed Stock Quote" Service from
http://www.xmethods.net/. JAXM is part of the Winter JAX Pack that can be
downloaded from http://java.sun.com/xml/downloads/javaxmlpack.html.
import javax.xml.soap.*;
import javax.xml.messaging.*;
import java.io.*;
import java.util.*;
SOAPPart sp = response.getSOAPPart();
SOAPEnvelope se = sp.getEnvelope();
SOAPBody sb = se.getBody();
Iterator it = sb.getChildElements();
while(it.hasNext()){
SOAPBodyElement bodyElement =
(SOAPBodyElement)it.next();
Iterator it2 = bodyElement.getChildElements();
while(it2.hasNext()){
SOAPElement element2 =
(SOAPElement)it2.next();
String lastPrice = element2.getValue();
System.out.print("The last price is ");
System.out.println(lastPrice);
}
}
If you are just interested in accessing a UDDI Registry and don't want to know the
innards of UDDI, you should consider using a client API like the one from
http://www.uddi4j.org.
Exception handling in Apache-SOAP - Is there a way of catching server
exceptions in the client side?
Location: http://www.jguru.com/faq/view.jsp?EID=728633
Created: Jan 21, 2002
Author: Idar Hareide (http://www.jguru.com/guru/viewbio.jsp?EID=551299)
Question originally posed by Mehdi Elaoufir
(http://www.jguru.com/guru/viewbio.jsp?EID=328822
-- Idar
what is ebXML?
Location: http://www.jguru.com/faq/view.jsp?EID=728641
Created: Jan 21, 2002
Author: Davanum Srinivas (http://www.jguru.com/guru/viewbio.jsp?EID=2011)
ebXML is a modular suite of specifications that enables enterprises of any size and in
any geographical location to conduct business over the Internet. Using ebXML,
companies now have a standard method to exchange business messages, conduct
trading relationships, communicate data in common terms and define and register
business processes. More information can be found at: