SOAP and XML
How can I setup SOAP and web services to POST and GET XML file from the third party application?
What document can I read? Thanks!
If you are an Oracle9i JDeveloper user, you might want to try the Oracle9i JDeveloper guide which gives you a simple helloworld sample to get you going. This uses the SOAP environment that is automatically configured by default on OC4J. See:
http://otn.oracle.com/sample_code/products/jdev/files/JDevRGuide.zip
The Web service demo shows how an EJB can be published on OC4J as a Web service - basically by configuring a SOAP-aware servlet that front-ends your Java/PL/SQL component.
For a more complete example check out the sample one that just came out the other day covering stateless and stateful Java classes, an EJB and a PL/SQL stored procedure:
http://otn.oracle.com/sample_code/tech/java/web_services/
For a set of examples of Web services that ship with OC4J, download OC4J and look in the directory:
<OC4J_Home>\j2ee\home\demo\web_services\
and take a read of the readme.txt. The area of OTN describing the OC4J Web services content is at:
http://otn.oracle.com/tech/webservices/
If you are looking for the Apache SOAP environment that ships with Oracle9iAS, simply look for the soap.ear file that is on the distribution. Normally this is located in <OC4J_Home>/soap/webapps/ but it might be easier to search the OC4J directory structure because its location changed between the 1.0.2.2 release and Release 2 now available here as noted above.
Hope this gives a start.
Mike.
Similar Messages
-
Which are Oracle's plans for supporting SOAP and XML-RPC?
Oracle iAS 9i release 1.0.2.2 contains SOAP server support for Java programmers.
Oracle iAS 9i release 2.0 will feature more support, as will an upcoming version of JDeveloper to simplify the development and use of Web Services. -
SOAP and XML infterface to database
How can I easy get a SOAP interface up and runing for my Sybase database.
The messages should be in XML format.
Is the easiest to use Jakata Struts http://jakarta.apache.org/struts/index.html
Regards
Lars SchouwFor SOAP based services you might be intested in looking some of the ASF's other projects.
Particularly, the Web Services project at http://ws.apache.org/
I find that Axis is the fastest and easiest way to quickly build a SOAP interface to an application, assuming you have the WSDL ready. It can generate server stubs, interfaces, holders etc in about 30 seconds, and also build client classes just as fast (which are great for the testing process). -
WSS4J with Soap and XML digital signatures
Hi,
I need to write a web client to access data from my friend's server
However, I do not have access to the WSDL or the Axis part and instead need to manually generate the SOAP
message that needs to be sent . I have been able to generate the SOAP body without the WSS4J part but I haven't been able to get it working
with the security part. I have read through the documents on the OASIS website but haven't been able to find any sample java code to
help me on this. Can you please give me some pointers on this ? Some sort of sample java code would be extremely helpful.
thanks,gary,
How did you configure the subsystem. could you plz expalain me in detail. bond_chaitu at yahoo.com
kris. -
What is payload, xi-soap message and xml payload....
can any 1 explains abt What is payload, xi-soap message and xml payload....
Hi Shiva,
see this abstract from messages file:
"The SOAP header of a message contains all the important information that the Integration Server requires to forward the message, while the payload contains the actual business data (such as <PurchaseOrder> in the example above). <b>You can also append an unlimited number of attachments to the message before it is sent. Attachments typically comprise non-XML data, for example, pictures, text documents, or binary data."</b>
Check this link for more info:
http://help.sap.com/saphelp_nw04/helpdata/en/b6/0b733cb7d61952e10000000a11405a/content.htm
Regards,
Subhasha -
How can we convert soap wrapped xml to simple xml?
I am getting a soap wrapped xml as payload to JMS in JMS queue and need to convert that into a simple xml. Can anyone please suggest how this can be done? I am adding the xml as an attachment.
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:header="http://wsi.nat.bt.com/2005/06/StandardHeader/">
<SOAP-ENV:Body>
<setupXMLDataAcquisitionRequest xmlns="http://capabilities.nat.bt.com/xsd/ManageMISDataAcquisition/2007/06/30" xmlns:S18="http://capabilities.nat.bt.com/xsd/ManageMISDataAcquisition/2007/06/30/CCM/Activities" xmlns:S70="http://capabilities.nat.bt.com/xsd/ManageMISDataAcquisition/2007/06/30/CCM/Events" xmlns:S78="http://capabilities.nat.bt.com/xsd/ManageMISDataAcquisition/2007/06/30/CCM/Incidents" xsi:schemaLocation="http://capabilities.nat.bt.com/xsd/ManageMISDataAcquisition/2007/06/30
D:\Jay_137788\OffshoreCode\WSDLandXSD\WSDLandXSD\ManageMISDataAcquisition.20070630.xsd">
<header:standardHeader>
<header:e2e>
<header:E2EDATA>e2EData</header:E2EDATA>
</header:e2e>
<header:serviceState>
<header:stateCode>OK</header:stateCode>
</header:serviceState>
<header:serviceAddressing>
<header:from>http://ccm.intra.bt.com/neo</header:from>
<header:to>
<header:address>http://ccm.intra.bt.com/orbit</header:address>
<header:contextItemList>
<header:contextItem contextId="http://ccm.intra.bt.neo" contextName="serviceType">WLR</header:contextItem>
</header:contextItemList>
</header:to>
<header:messageId>http://ccm.intra.bt.com/neo/manageMISDataAcquasition/EC9DB800-5C5F-11DC-AECA-E60BE61DBC5B</header:messageId>
<header:serviceName>http://ccm.intra.bt.com/manageMISDataAcquasition</header:serviceName>
<header:action>http://ccm.intra.bt.com/manageMISDataAcquasition/2007/08#problemMISEventNotification</header:action>
</header:serviceAddressing>
<header:serviceSpecification>
<header:payloadFormat>XML</header:payloadFormat>
<header:version>1.0</header:version>
</header:serviceSpecification>
</header:standardHeader>
<activity>
<S18:Event>
<S70:id>KPI.SA.dispatchActionItem</S70:id>
<S70:eventDateTime>2007-09-06T15:29:56</S70:eventDateTime>
</S18:Event>
<S18:activityId>000000109</S18:activityId>
<S18:activityType>WFT</S18:activityType>
<S18:activityCode>BBHC5</S18:activityCode>
<S18:activityStatus>Not Started</S18:activityStatus>
<S18:activityCondition>Not Started-Dispatch</S18:activityCondition>
<S18:activityDateCreated>2007-09-06T16:30:36</S18:activityDateCreated>
<S18:activityDateCompleted>1753-01-01T00:00:00</S18:activityDateCompleted>
<S18:activityQueueID>ASG</S18:activityQueueID>
<S18:activityNote>
<S18:comment>Customer Apparatus SFI for BBHC5</S18:comment>
</S18:activityNote>
<S18:activityOwner>sa</S18:activityOwner>
<S18:activityAccessURL />
<S18:faultIdentifier>
<S78:name>faultId</S78:name>
<S78:value>NeoSAC00000041</S78:value>
</S18:faultIdentifier>
<S18:activityRelatedTo>Action Request</S18:activityRelatedTo>
</activity>
</setupXMLDataAcquisitionRequest>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>I take that to mean "Yes" to the first question and a failure to answer the second.
I don't know anything about SOAP, but that shouldn't matter because you're just asking a general question about XML. I assume that "the message in the body" must correspond to something in that XML you posted? Right? When I look at it I don't see anything that looks much like a message, but then I don't know anything about SOAP. -
I am trying to call a web service using apex_web_service.make_request function.
It works fine when all the parameters are correct. However, when something is wrong in the request XML, it throws an exception instead of returning the soap:fault message:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1369
ORA-29269: HTTP server error 500 - Internal Server Error
ORA-06512: at "APEX_040200.WWV_FLOW_WEBSERVICES_API", line 130
ORA-06512: at line 37
I need to get back the soap:fault and parse it to display a proper error message to the users (e.g. what was wrong with the input), yet the call throws an exception instead of returning it.
I am trying the exact same request from soapUI and it returns me the soap:fault below:
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope">
<soap:Body>
<soap:Fault>
<soap:Code>
<soap:Value>soap:Receiver</soap:Value>
</soap:Code>
<soap:Reason>
<soap:Text xml:lang="en">Fault occurred while processing.</soap:Text>
</soap:Reason>
<soap:Detail>
<ns1:RegisterFault xmlns:ns1="http://www.exchangenetwork.net/wsdl/register/1">
<description xmlns:ns2="http://www.exchangenetwork.net/wsdl/register/1">The security token has expired.</description>
<errorCode xsi:type="ns2:RegisterErrorCode" xmlns:ns2="http://www.exchangenetwork.net/wsdl/register/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">E_TokenExpired</errorCode>
</ns1:RegisterFault>
</soap:Detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
How do I get this back from APEX?
Thanks!Hi,
I've just run into this.
If the webservice returns a fault, such as:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>INVALID_REQUESTER_INFO</faultstring></soap:Fault></soap:Body></soap:Envelope>
then the user gets presented with an unfriendly error message and there's no chance to output a more friendly one.
The response above is seen when testing the webservice, when run from the Form/Report page, we get something like:
soap:ServerINVALID_REQUESTER_INFO
Contact your application administrator.
OK
When OK button is clicked everything is rolled back and we don't even get the fault XML.
It would be good if Apex could be optionally set to not give the unfriendly messages, so that we could code such a message ourselves.
Unless anybody has a workaround for this, I guess that I'll have to see if I can code this in PLSQL.
Regards,
Chris -
RFC- XI -SOAP and response back to RFC
Hi,
I am doing RFC-XI-SOAP and get response back from SOAP to RFC.
if I am not check the "Do Not Use SOAP Envelop" then it gives error in SXMB_MONI says - NO SOAP envelop.
"No SOAP Envelope but 1 {}RESPONSES; HTTP 200 OK"
if I check thet check bos ""Do Not Use SOAP Envelop" then it gives no error in SXMB_MONI , but message is not giving response back from webservice in SXMB_MONI it shows only
<?xml version="1.0" encoding="UTF-8" ?>
<ns1:MYRFC.Response xmlns:ns1="urn:sap-com:document:sap:rfc:functions" />
gurus ...Pl. reply asaphi, all
you are right the XML sp/tcpgateway response structure is different than what I used earlier,
now I build the same structure,but then also some problem occures it is giving only one element from structure in response.
it is giving
<?xml version="1.0" encoding="UTF-8" ?>
- <ns1:MYRFC.Response xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
<STATUS>Success</STATUS>
</ns1:MYRFC.Response>
while actual inbound from WS is ...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Inbound Message -->
- <ns0:testrequestResponse xmlns:ns0="conversion" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" Status="Success" DbgCmd_="testrequest" DbgTag_="REQUEST">
- <ns0:SAP_OUTPUT>
<ns0:E1 Value="3000194" />
<ns0:E2 Value="300"/>
<ns0:E3 Value="3"/>
</ns0:E4 Value="94">
</ns0:testrequestResponse> -
Could someone help me to clearly distinguish between SOAP and HTTP adapter?
In which scenarios we can go for HTTP adapter and when to go for SOAP adapter?
Hi Lekshmi !!
A SOAP message will be bundled inside the soap envelope.HTTP is not an adapter in adapter engine whereas soap is an adapter i.e, HTTP doesn't require a communication channel where as SOAP requires.You can send soap messages using some SOAP client.
SOAP Adapter is used to xchange SOAP messages bw remote clients and webservices....
check this link for more differences..
SOAP and HTTP adapter
When you need to Send Data to XI from a Webservice , your SOAP adapter is used.
HTTP adapter is used when you want to post a HTTP request message from a web application to XI.
How can i make use of SOAP Sender Adapter without using any tools like XML Spy etc....
XML SPy is used as a TEST tool when you are sending SOAP information to XI. TO actually send data , you need to configure a webservice and construct a SOAP request message and post the data .
we use SOAP adapter when we need to connect to remote system or use Webservices in these cases we use SOAP adapter.
HTTP Adapter is used by extenal systems to connect to Intergartin server using native HTTP Interface.
the http adapter is a service which is directly connected to integration engine. Adapter Framework (Java) isnt involved. It is much more performant than SOAP adapter.
The SOAP adapter is written in Java and is responsible for the SOAP envelope around the real XML message. You can build/remove that envelope as well in the mapping and use instead http adapter. But standard for webservices is using SOAP adapter.
Check this thread....
Difference between SOAP and Http Sender
HTTP Adatpter Vs Soap Adapter
HTPP Adatpter Vs Soap Adapter ????
Difference between SOAP and Http Sender
Difference between SOAP and Http Sender
Plain HTTP Adapter vs SOAP Adapter with regards to SSL
Plain HTTP Adapter vs SOAP Adapter with regards to SSL
Hope it clears your doubt !!!!
Questions are welcome here!!
<b>Also mark helpful answers by rewarding points </b>
Thanks,
Abhishek Agrahari -
Hi all,
i am new to java..!! so can someone pls help me..its urgent?
i want to create a agent which will read the content sent through SOAP and create an XML file and send it through web service. Can anyone help me in this regard..?
P.S :- sorry if i am repeating this question as many of them wud have already asked this..i was not able to find anythin to match my requirement.
thanks
balai was not able
to find anythin to match my requirement.What you're asking is so common that I find it difficult to believe your search would come up empty. A quick google search of "java web services" returns more information than you will ever need. First link that pops up:
java.sun.com/webservices/
Good luck. -
Hello, I'm a newbie to web services and I'm also not very experienced in programming. After reading through a number of articles and following some tutorials I'm still not sure about data and object transfer with JAX-WS and the binding with JAXB
---> let's say I have a web service that calculates signal path loss of an access point in a room. So I could create a room class that consists of a list of walls, and an access point. The wall class has the 2dimensional coordinates for it's 2 ends and the access point class has only it's 2d coordinate.... and so on.
The client against this web service would have to create this room-object with the other objects it consists of and send it to the web service to calculate the signal map of the room.
My question is: What ways can I use to transfer such a data structure and what is the best practice?
1st way: I can create the room-object as a plain old java object and let JAX-WS do the marshalling to XML and the unmarshalling back to java object on the server side. (I tried this, it works quite easiely, but I doubt this is the right way, because client and server must be written in Java, and the client also need the Room-class in its library to compile....not really the goal of SOAP and WS's)
2nd way: I guess that I also can create an XML-document that represent this room as I descibed above and send it to the server to process. <<<--- how do I do that?, do you know any tutorials about this?
3rd way:? is there a better way to transfer such datastructures, with focus on language independency?
Thank you in advance!VirtualG wrote:
2nd way: I guess that I also can create an XML-document that represent this room as I descibed above and send it to the server to process. <<<--- how do I do that?, do you know any tutorials about this?you have already done that, you just don't realize it because of all the work that java is doing. you created a webservice with jaxws. did you see the wsdl which was generated by the webservice? this is the language independent piece of the puzzle.
you in fact do not need the existing java classes in order to create a new java client. you could use the wsimport tool pointed at the wsdl from your service to generate the classes that you need to write a new java client. in this same fashion, a developer could use a similar tool written for another language (say .NET), to generate the necessary client side code to use your webservice. -
SOAP and Apache compartibility probs
Hello,
i want to deploy a soap web service and i 've read
the www.soapuser.com tutorial but unfortunately it
seems that there is a major problem somewhere
that i can not discover.
Can u tell me a stable version for deploying soap web services in an apache server?
also what packages i need. if you give me some tutorial page it would also be very helpful!!
ThnxHi Thierry,
When we wrote the web services layer for BEA we purposefully left out
stateful session beans and entity beans because they did not match the
"services" model and there is no standard way to keep the state between
calls to the service. I believe the Apache implementation uses the HTTP
session for this behaviour. I don't know what the problem is with the
Apache SOAP implementation but I can try and help you either 1) use a
stateless session bean to call your sfsb, or 2) convince me that stateful
beans implemented outside the web services standard is something BEA should
support.
Sam
"Thierry Janaudy" <[email protected]> wrote in message
news:[email protected]..
Hello,
I wanted to use BEA's implementation of SOAP, but the problem is that you
cannot call SFSB.
Therefore I tried to install and run Apache SOAP (Which provides a service
for SLSB, SFSB, EB).
However, you I try to remotely list the services through:
java -cp %CP% org.apache.soap.server.ServiceManagerClient
http://localhost:7001/soap/servlet/rpcrouter list
I always get
Exception in thread "main" java.lang.NoSuchMethodError
at org.apache.soap.util.xml.QName.<init>(QName.java:80)
at org.apache.soap.util.xml.QName.matches(QName.java:146)
at org.apache.soap.Envelope.unmarshall(Envelope.java:237)
at org.apache.soap.rpc.Call.invoke(Call.java:230)
at
org.apache.soap.server.ServiceManagerClient.invokeMethod(ServiceManagerClien
t.java:129)
at
org.apache.soap.server.ServiceManagerClient.list(ServiceManagerClient.java:1
51)
at
org.apache.soap.server.ServiceManagerClient.main(ServiceManagerClient.java:2
37)
Do you have any idea why?
Thx -
Difference Between SOAP And HTTP Adapters
Hi,
Any body give me some information Abt Differences between SOAP And HTTP Adapters i know both are in use of Webservises. Any one come with more specific differences like in what case we go for SOAP And in what case we go for HTTP. thanks in advance.
Thanks
kiran.BHi,
In addition to the above
The SOAP Adapter enables u to exchange SOAP messages between the remote clients or web servers and the integration server
The HTTP Adapter is used to receive the arbitrary XML in the body of an HTTP-Post request.The HTTP adapter uses HTTP version 1.0 and does not support returning fault messages to the sender.
The HTTP adapter is used by the external systems to connect to the integration engine using the native HTTP interface.The plain HTTP adapter is a part of integration engine.
Regards,
Gunasree. -
Hi
We are in mid of confusion :-) between confusion between JAX RPC and XML based
web services. Now as i understand there are 2 ways of doing web service
1) JAX RPC
2) JAXM
My questiuon when do we use each of them and which would be deciding factor ?
Also say i make a service using java and servicegen. Deploy on weblogic 7.0. I
have my WSDL in place. Now can any client ( C or .NET) access my webservice as
far as they are able to grab my WSDL ?
DO we have tools like WSDL2JAVA for other languages. WSDL2C or WSDL2NET etc.
I am be too offf but am confused and need something to go ahead with weblogic
and java based sewrvice.
ThanksTo keep it simple, JAX-RPC provides an API for building web services and web service
clients that use RPC and XML. While JAXM is an API for XML-based messaging, where
using a messaging provider you can send/receive SOAP messages.
JAXM is used when you are doing a messaging (a la JMS or JavaMail) with SOAP messages.
I would suggest to refer to the following links for good starter course on web
services :
http://java.sun.com/webservices/docs/1.1/tutorial/doc/
http://dev2dev.bea.com/technologies/webservices/tutorials.jsp
In BEA WebLogic we provide "wsdl2service", which is an Ant task that takes as
input an existing WSDL file, and generates the following WebLogic Web service
components:
- the web-services.xml deployment descriptor file
- a Java source file that partially implements the Web service.
Now we probably we could have utilities provided by other vendors to generate
service components in a certain implementation from a WSDL.
Regards
Shridhar
"pranav" <[email protected]> wrote:
>
Hi
We are in mid of confusion :-) between confusion between JAX RPC and
XML based
web services. Now as i understand there are 2 ways of doing web service
1) JAX RPC
2) JAXM
My questiuon when do we use each of them and which would be deciding
factor ?
Also say i make a service using java and servicegen. Deploy on weblogic
7.0. I
have my WSDL in place. Now can any client ( C or .NET) access my webservice
as
far as they are able to grab my WSDL ?
DO we have tools like WSDL2JAVA for other languages. WSDL2C or WSDL2NET
etc.
I am be too offf but am confused and need something to go ahead with
weblogic
and java based sewrvice.
Thanks -
Is in PI7.1 possible asynchronous communication between SOAP and ABAPProxy?
Hi,
when method execute_asynchronous has disapeared since XI/PI 7.1, is
there still way how to use ABAP proxy in asynchronous way?
We need to build asynchronous connection SOAP->PI->ABAP_Proxy.
In PI, both interfaces are defined as asynchronous (outbound for SOAP and
inbound for ABAP Proxy).
Despite of this fact, when message is sent, it is processed
synchronous way.
I have set breakpoint in my implementation of method for ABAP Proxy
message processing. When message is sent and breakpoint is reached,
whole connection stays open (between SOAP and PI and between PI and
ABAP Proxy) and waits for processing method (the breakpointed one) to
return. Only when processing method returns, is connection finelly
closed.
If i understand it correctly, this is synchronous behavior. In
asynchronous behavior, as i understand it, should be connection
between PI and ABAP Proxy of application server closed immediately
after message has been delivered. This mean before my processing
method is even called.
The same could be said about SOAP and PI communication. Connection
should be closed immediately after PI has received message. From
definition of asynchronous communication of PI is obvious, that PI
should receive message correctly and close connection to sender system
even when receiver is unreachable. It should deliver message later
when, receiver system is back on line. So why it keeps connection to
sender system open while it waits for receiver?
Why is this happening, when both interfaces are defined as
asynchronous? Could be the reason for this, if APPLICATION
ACKNOWLEDGEMENT is set on by default? If so, how can i change it
to SYSTEM ACKNOWLEDGEMENT, or disable it at all?
Or is this kind of asynchronous communication even possible since
XI/PI 7.1 ?
Processing of message we are sending can take some time, so we dont
want connection pending open while waiting for finish of
processing. Thats the reason why we have chose asynchronous model to
use.Quote from How to Use the J2EE SOAP Adapter:
"If you select Best Effort, the Web service client will receive a response
message in the SOAP body. Otherwise, the Web service client will not receive a
response message if no error occurs."
"if no error occurs" - that is the problem. In either case he still
waits if some error occure or not. I dont want it. Once PI has
received message, I want the connection with sender to be closed. If
there will be error in communication between PI and reciever, I want
to see it only in PI log. That mean no notification to sender to be
send about that error.
Is that possible?
Maybe you are looking for
-
How to solve this "amnesia" protect problem
Hi All I have a two nodes one quorum cluster environment. I just see this problem: I shutdown nodeA and all all othe resource groups switch to nodeB, it works fine and I believe quorum device vote belongs to nodeB. Then I shutdown nodeB and power on
-
Hi, I have a G5 running tiger (soon to be running leopard hopefully) with a DVI cinema display. I have a PC that I use for testing my work on the Web. I was able to switch back and forth easily with a Belkin KVM switch back when I was using a VGA mon
-
Hi All, I am upgrading the site collection which has NO workflow implemented in 2010. When I am doing health check before the upgrade I am getting this •<websiteUrl>/_catalogs/wfpub/Approval - SharePoint 2010/ReviewApproval_1033.vdw - Reset page to d
-
Dear, all, During implementation of SAP EWM, we face with process which required interaction integration of statuses with ERP Sales order and Outbound delivery, but in standard EWM scenario this integration possible only via goods issue and EWM outb
-
Moving a jpg image on top of another jpg image
I am currently doing a game board project and I need code to move an image that is on top of another image. I have the board image up but I need to put the other image on top of it and move it. Please someone with code to drag and drop help me. Thank