Tool to test Webservices using SwA (Soap with Attachements)
Hi All,
I generally use the took xmlspy to test any webservice.
But now i am working with a webservice that is using SOAP with Attachemtns.
it seems we cannot use xmlspy to test/invoke webservices that use soap with attachements.
is there any tool by which we can send/receive soap message along with attachements to and from webservices.
Hi,
Have you tried SoapUI?
The standard (free) version & SoapUI Pro both support soap with attachments. Try it out & see if it works for you. SoapUI is proving to be one of the best tools for testing web services.
Regards, Trevor
Similar Messages
-
Hello,
I need to develop a WebDynpro application with NetWeaver 2.0 for SAP EP6 that call a remote web service in order to send an attached file with SWA (Soap With Attachment) methodology. The kind of file to attach is XML.
Can someone give me refers or indications to implement it?
Thanks and best regards,
Matteo.
Edited by: Matteo De Santis on Oct 21, 2008 11:45 AMFollowing link might help you :
http://help.sap.com/erp2005_ehp_03/helpdata/EN/5e/ea656273b74cf386a1f29fc55721fd/frameset.htm
Thanks. -
Can I use Sound Soap with Garage Band?
Can I use sound soap with GarageBand?
No you cannot. Sound Soap only comes as an RTAS pluggin and GarageBand can only host AU (Audio Unit) pluggins. Here are some alternatives from Izotope, an entry level option https://www.izotope.com/products/audio/msc/ and their more 'Pro' version https://www.izotope.com/products/audio/rx/ Hope that helps.
-
InvalidSecurity Exception in WS and SOAP with Attachment
Hi all, <bR>
<br>
I created a EJB based webservice with the following signature: <br><br>
public String businessMethod2(byte[] arg1) {..}<br>
<br>
<br>
This Method is exposed as webservice, which is configured as SOAP with Attachment. <br>
All security or authentication settings are disabled by intention. <br>
The input param arg1 should be a binary file.
<br><br>
When I call this webservice I always get the following response: <br><bR>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" <br>
xmlns:xs="http://www.w3.org/2001/XMLSchema" <br>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><bR>
<SOAP-ENV:Body><bR>
<SOAP-ENV:Fault><bR>
<faultcode xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><b>wsse:InvalidSecurity</b></faultcode><bR>
<faultstring>000F1F90EDDB006C00000012000014D8000437A5EE6DAE4E : <b>WS Security can only be applied on a SOAP document.</b></faultstring><bR>
<detail><bR>
<ns1:com.sap.security.core.server.ws.service.WSSecurityException xmlns:ns1="http://sap-j2ee-engine/error">000F1F90EDDB006C00000012000014D8000437A5EE6DAE4E : WS Security can only be applied on a SOAP document.</ns1:com.sap.security.core.server.ws.service.WSSecurityException><bR>
</detail><bR>
</SOAP-ENV:Fault><bR>
</SOAP-ENV:Body><bR>
</SOAP-ENV:Envelope><bR>
<br>
<br>
My guess is, that the WAS 7.00 SP11 is magically configured for applying WS-Security to every webservice. <br>
<br>
The Security Profile settings for Inbound / Outbound - Paramters is "None" in Visual Admin Webservice Security. <br>
<br>
How can I get rid of this Exception and make the webservice work?
<br>
<br>
regards <br>
Gabi <br>http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=article&group=weblogic.developer.interest.webservices&item=4967
grazieee wrote:
>
HI, i have found an example that illustrates the reception and return of SOAP attachments
in web service method. However, the weblogic workshop I am using does not recognise
'DataHandler'. I typed 'public String echoAttachment(DataHandler dh) and it said
'web service does not support such data type'. Is there any resolution to it?
And if convenient, can i have the source code of attaching images to SOAP?
Thanks alot.
Good Day!
grazieee
P/S: I'm using weblogic version 8.1 -
Hi all,
I need to implement a synchronous scenario where an R/3 system sends data via RFC to an external system that expects it in the format of soap with attachment. Then the external system responds with soap message without attachment.
My main concern is how to create a soap attachment from payload that I get from the RFC sender adapter.
I would appreciate any your suggestion how to implement this scenario. If possible, I would prefer to avoid using java modules and BPM, since I am not very skilled with them.
Thanks Janos.>
janos malizero wrote:
> Hi all,
>
> I need to implement a synchronous scenario where an R/3 system sends data via RFC to an external system that expects it in the format of soap with attachment. Then the external system responds with soap message without attachment.
> My main concern is how to create a soap attachment from payload that I get from the RFC sender adapter.
> I would appreciate any your suggestion how to implement this scenario. If possible, I would prefer to avoid using java modules and BPM, since I am not very skilled with them.
>
> Thanks Janos.
well i think your darkest fears just came true ... the only option here is to write a module to create the attachments for you. The trick is once the module create the attachment, you need to check the option keep attachments in the SOAP receiver CC.
How to create modules -
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a -
How can I get JAXM SOAP with Attachement parts?
I received a SOAP with attachment message.
Attached data is XML document("text/xml" type).
But when I try to get a attachment part by using below source code, I got a NullPointerException.
Iterator it = message.getAttachments();
AttachmentPart attachment = (AttachmentPart)it.next();
StreamSource content = (StreamSource)attachment.getContent(); <=content is not Null.
InputStream inputstream = content.getInputStream(); <= inputstream is Null.
StreamSource object is OK, but it doesn't return InputStream object.
Does anyone know what the problem is?
Thanks in advance.
Junhong.Hi!
Use the following to get the stream:
InputStream is = attachment.getDataHandler().getInputStream(); -
Issue with testing webservice using SOAMANAGER.
Hello,
I created an RFC and exposed it as a webservice. Everything worked fine.
I had to enhance the RFC by adding a couple of field, and then I recreated the webservice. When I now test this webservice using the SOAMANAGER I get the following error message.
Message Envelope not found. Probably empty soap message.
Any pointers as to what could be going wrong. I have deleted the entire webservice, and recreated the service in the SOAMANAGER. I also restarted the browser so there was no caching issues on the browser with sessions and stuff like that.
Thank You for your help in advance.
Sumit.An alternative is:
use txn WSADMIN and open the node for your web-service. Then, press the 'Rench' button or F8 to open the web based test tool.
You need to provide logon credentials if basic authentication was required for the WS.
Pls reward points if helpful. -
Error while testing webservice using SOAP
Hi,
While i was testing my published webservice using soap-ui it gave me following error,
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Internal SOAP Processing Failure</faultstring>
<detail/>
</soap:Fault>
</soap:Body>
</soap:Envelope>
and in the event log i can see a event as follows and there is no warning or error
Upon investigation i got to know the following steps might solve the problem..i.e..
- Is the receive location for the SOAP webservice enabled? - YES
- Can you browse to (the WSDL of) the webservice? Is displayed correctly? -YES
- Is the webservice configured to run in the correct application pool? -YES
-The user under which application pool is running have the read/write permission on the %temp% folder.-Dont Know how to check
-In IIS,Check the identity of the application pool on which Web service is running and make sure that the user is the member of both “IIS_WPG” and “BizTalk Isolated host users”.
-DONT Know how to check
Please Help me in guiding me in the last two points
and if there are any other solutions for this..
Thanks,
Sarva.You mentioned you checked that the webservice is configured under correct application pool. you can find the user under which the application pool is configured (open iis- > select application pools -> find out the "Identity column" to
know the user for your application pool.
-The user under which application pool is running have the read/write permission on the %temp% folder.-Dont Know how to check
Go to run -> type "%temp%" -> Go one step back -> Right click to the folder -> Properties -> Security -> check the application pool user is present under "Group or user names"
-In IIS,Check the identity of the application pool on which Web service is running and make sure that the user is the member of both “IIS_WPG” and “BizTalk Isolated host users”.
-DONT Know how to check
Refer How to Add Service Account to the IIS_WPG Group to add your application pool user under IIS_WPG. Also similar activity to add your service account to "BizTalk Isolated
host users" if it is local groups. Or Ask your network support team if "BizTalk Isolated host users" is domain group.
Please Help me in guiding me in the last two points
and if there are any other solutions for this..
Thanks,
Sarva.
Your event viewer might have more information pointing exactly what is causing "Internal SOAP processing failure".
Also refer this
which might be helpful for you.
If this answers your question please mark it as Answer and if this post is helpful, please vote as helpful. Thanks ! -
File(PDF as attachment)-- XI-- WebService(SOAP with attachment)
Hi i have following Scenerio in my hand,
File>XI>WebService(SOAP)
Kindly help me in implementing the Following Scenerio;
I need to attach PDF to File Adapter as PayLoad or give it to File Adapter as Attachment which in turn send this data to XI and then XI wud generate WebService having this PDF as attachment.
Kindly Walk me thru all the steps during Configuration and design and do guide me how to test wether this scenerio works or not.
Also tell me abt the WebService i need to use to test the Scenerio.
Thanks.Hi Jeet,
If you want your file adapter to read contents from a PDF file, check out the folloing blog,
<a href="/people/sap.user72/blog/2005/07/31/xi-read-data-from-pdf-file-in-sender-adapter">Sender File Adapter with PDF</a>
If you want your file adapter to generate its output into a PDF file, then check the following blog,
<a href="/people/sap.user72/blog/2005/07/27/xi-generate-pdf-file-out-of-file-adapter">Receiver File Adapter With PDF</a>
Sriram's blog on FILE to HTTP scenario might of be help to you too. It also deals with Syn / Async Bridge which can be ignored.
<a href="/people/sriram.vasudevan3/blog/2005/01/11/demonstrating-use-of-synchronous-asynchronous-bridge-to-integrate-synchronous-and-asynchronous-systems-using-ccbpm-in-sap-xi">File to HTTP</a>
Do let us know if you need any further help,
regards,
Bhavesh -
Need simple example on Soap With attachment webservice
Hi
I want to explore following points:-
1. How to create a webservice that accept attachment.
2. java Client to send the attachment to webservice
3. using OSB to send attachment to webservice?
Does any have any example tht will help to understand this, Please post the link will be great help?
ThanksThere is one sample in jeffdavies.org site. Download the code samples and check if it helps you.
-
XML BLOB to SOAP with attachment
Is it possible to receive in XI an asyc. message with BLOB information in an XML tag
and transform it to SOAP message with attachment?>how to convert the BLOB to the pdf\jpg\tiff file attachment in the SOAP?
refer this link for sample.. If you are not java programmer take help from java experts. Basically you have to use jdbc java classes to retrieve and convert the display into image.
http://www.techlabs4u.com/2011/10/reading-blob-data-in-db2-using-java-how.html
For soap attachment refer payloadswapbean module. Refer sdn forum related to this.... also see this help [link|http://help.sap.com/saphelp_nw73/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm] -
SOAP with Attachment Support in Web AS Java
Hello,
I want to write an extension to an existing Java application running on Web AS to take a PDF (which is a binary object in the context) and submit it using a Web Service call to a Web Service running on a WebSphere App Server. My idea is to use SOAP with attachments to do this. I know how to create a simple Web Service call with the NWDS, but I am not so sure about a Web Service call with an attachment.
1) Is SOAP with attachments supported in Web Java/NWDS?
2) Does it require a specific Web AS 6.40 SP Stack?
3) Has anyone used this before? Is there anything I need to consider (e.g. encoding of the attachment)?
4) Is there a maximum file size for the attachment?
You help is appreciated. And if I get it running I can show it at TechEd
Cheers!
MatthiasI found what causes the problem.
I use resource bundle to handle i18n and one of bundle is myapp_zh.properties for Chinese locale. In browser I add Chinese [zh] in Language Preference then the web page should display Chinese character.
What puzzles me is that encoding of the page with Chinese characters is Chinese Simplified (GB2312) rather than UTF-8. Tomcat correctly sets page Encoding to UTF-8 since I specify <%@ page language="java" contentType="text/html;charset=UTF-8" %> in each JSP file. Why Web AS ignores this and returns Chinese character in GB2312?
Thanks a lot
John -
Error testing webservice using ESB with Oracle apps adapter services
When creating a simple ESB project with Oracle Applications adapter service, i get the following error when testing the webservice via EM.
SOA suite 10.1.3.3
oracle EBS 11.5.10
Any pointer on how to fix this is very much appreciated.
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Header/><env:Body><env:Fault xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><faultcode>env:ESBMessageProcessingFailed</faultcode><detail><EventName>DefaultSystem.GetOrderRS.executeprocedure</EventName><Cause>An unhandled exception has been thrown in the ESB system. The exception reported is: "oracle.tip.esb.server.common.exceptions.BusinessEventRejectionException: An unhandled exception has been thrown in the ESB system. The exception reported is: "org.collaxa.thirdparty.apache.wsif.WSIFException: esb:///ESB_Projects/LoadCustomer_orappdorders/orappd11i.wsdl [ orappd11i_ptt::orappd11i(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'orappd11i' failed due to: Could not instantiate InteractionSpec oracle.tip.adapter.apps.AppsStoredProcedureInteractionSpec due to: Error while setting JCA WSDL Property.
Property setIRepInternalName is not defined for oracle.tip.adapter.apps.AppsStoredProcedureInteractionSpec
Please verify the spelling of the property.
; nested exception is:
ORABPEL-12532
Error while setting JCA WSDL Property.
Property setIRepInternalName is not defined for oracle.tip.adapter.apps.AppsStoredProcedureInteractionSpec
Please verify the spelling of the property.
; nested exception is:
org.collaxa.thirdparty.apache.wsif.WSIFException: Could not instantiate InteractionSpec oracle.tip.adapter.apps.AppsStoredProcedureInteractionSpec due to: Error while setting JCA WSDL Property.
Property setIRepInternalName is not defined for oracle.tip.adapter.apps.AppsStoredProcedureInteractionSpec
Please verify the spelling of the property.
; nested exception is:
ORABPEL-12532
Error while setting JCA WSDL Property.
Property setIRepInternalName is not defined for oracle.tip.adapter.apps.AppsStoredProcedureInteractionSpecFix is as pointed in Error reported during AP Invoice concurrent program.
-
Testing webservice using Weblogic's test client
Hi,
Getting this when I start the test client to test the webservice, looks like its a MAC address....what i expect is the IP address, bit of a pain having to type the ip address each time. Any help would be great.
http://[2002:1011:cd64::1011:cd64]:7001/wls_utc?wsdlUrl=http%3A%2F%2F%5B2002%3A1011%3Acd64%3A0%3A0%3A0%3A1011%3Acd64%5D%3A7001%2Ftransactions%2FTransactionService%3FWSDL
Using weblogic 11g running on Windos 7, this is my test machine.
regards
DavidAn alternative is:
use txn WSADMIN and open the node for your web-service. Then, press the 'Rench' button or F8 to open the web based test tool.
You need to provide logon credentials if basic authentication was required for the WS.
Pls reward points if helpful. -
PLEASE HELP! Using Apache SOAP with WL61
Hi,
I am trying to run the Apache soap within the WL61.
I have the Apache soap servlet deployed under WL61.
I am trying to use org.apache.soap.server.ServiceManagerClient
to deploy the sample AddressBook service. I get the following error: "Unable to
resolve namespace URI for 'xsd'".
Now, the Apache SOAP faq says, I need to use the 1.3.0 xeces.jar
on both server and client to solve this problem.
However, WL61 server wont come up with the 1.3.0 xerces.jar file
I am in a catch 22 situation, please help.
thanksI had exactly this problem and by following the advice below I got it to work using
crimson.jar from apache.
Step 1: put crimson.jar frst in classpath
Step 2: put the following in config.xml
<XMLRegistry DocumentBuilderFactory="org.apache.crimson.jaxp.DocumentBuilderFactoryImpl"
Name="Xerces JAXP" SAXParserFactory="org.apache.crimson.jaxp.SAXParserFactoryImpl"
/>
Step 3: updated Server entry in config.xml to point to "Xerces JAXP" as explained
below.
I know this does not add a lot to the idea below but it is an alternative.
Thanks,
George
Manoj Cheenath <[email protected]> wrote:
>
This is something i found in apache soap mailing list:
------- Original Message --------That fixed it! Thanks, Stefan!
-----Original Message-----
From: Stefan Dube [mailto:[email protected]]
Sent: Wednesday, June 13, 2001 4:15 AM
To: [email protected]
Subject: RE: compatibility with weblogic 6.1 beta
Hi!
I believe the problem is that SOAP 2.2 uses JAXP and WL uses their
bundled
xerces as JAXP parser.
To override this you have to modify the config.xml like this: (or
use the web
console)
Add following element as child of the <Domain> element:
<XMLRegistry
DocumentBuilderFactory="org.apache.xerces.jaxp.DocumentBuilderFactoryImpl"
Name="Xerces JAXP"
SAXParserFactory="org.apache.xerces.jaxp.SAXParserFactoryImpl"
/>
and modify the <Server> element like this:
<Server
InstrumentStackTraceEnabled="true"
ListenPort="80"
LogRemoteExceptionsEnabled="true"
Name="myServer"
NativeIOEnabled="true"
XMLRegistry="Xerces JAXP" <-- only this line is important
>
Hope that helps,
-sd
-----Original Message-----
From: Erik Onnen [mailto:[email protected]]
Sent: Wednesday, June 13, 2001 1:33 AM
To: '[email protected] '
Subject: RE: compatibility with weblogic 6.1 beta
The "unable to resolve namespace" problem is because BEA in
their infinite
wisdom chose to mesh Xerces into their own libraries.
Unfortunately they
used an old version and because it is so embedded, you can't
just replace a
JAR. I was able to get 2.1 working on 6.0 sp1 by moving
Xerces to the front
of the classpath in the startup script. Ed, when WL won't
start, what is the
error you get? I haven't heard of that happening before.
Steve, when you say
Xerces is in your classpath, is it at the front, before weblogic.jar?
-----Original Message-----
From: Steve Livingston
To: [email protected]
Sent: 6/12/01 6:46 PM
Subject: RE: compatibility with weblogic 6.1 beta
1) I get the same error (with NT, soap-2.2 and wl-6.1beta) andhave
found no solution:
E:\apache\soap-2_2\samples\addressbook>java
org.apache.soap.server.ServiceManagerClient
http://slivings:7001/soap/servlet/rpcrouter list
Deployed Services:
E:\apache\soap-2_2\samples\addressbook>java
org.apache.soap.server.ServiceManagerClient
http://slivings:7001/soap/servlet/rpcrouter deploy dd.xml
Ouch, the call failed:
Fault Code = SOAP-ENV:Client
Fault String = Unable to resolve namespace URI for 'ns2'.
2) My wl-6.1b will start with xerces in classpath, but same error
occurs.
Can anyone help?
Steve
-----Original Message-----
From: Ed Keen [mailto:[email protected]]
Sent: Monday, June 11, 2001 6:36 PM
To: '[email protected]'
Subject: compatibility with weblogic 6.1 beta
Has anyone gotten Apache soap version 2.2 to work with Weblogic6.1
beta?
There seems to be a xerces incompatibility. The weblogic.jarfile
contains
the xerces library. If you put xerces.jar first in the classpath,
weblogic
won't even start. However, if you put weblogic.jar first in the
classpath,
you get this error when attempting to deploy services using the
ServiceManagerClient: "Unable to resolve namespace URI for 'ns2.'"
This obviously seems to be a xerces parsing issue. Does
anyone know of
a
workaround for this?
Thanks,
EdSanjeev Hegde wrote:
Hi,
I am trying to run the Apache soap within the WL61.
I have the Apache soap servlet deployed under WL61.
I am trying to use org.apache.soap.server.ServiceManagerClient
to deploy the sample AddressBook service. I get the following error:"Unable to
resolve namespace URI for 'xsd'".
Now, the Apache SOAP faq says, I need to use the 1.3.0 xeces.jar
on both server and client to solve this problem.
However, WL61 server wont come up with the 1.3.0 xerces.jar file
I am in a catch 22 situation, please help.
thanks
Maybe you are looking for
-
Calendar Will Not Sync With Outlook
Calendar won't sync with Outlook 2003. Tasks, memos, and contacts will though. Under default services, it lists Facebook as my Calendar (CICAL). What do I need to do to change this so that my calendar syncs properly? Solved! Go to Solution.
-
I have just enrolled to study and my course is online. in order to view any of the course content, i need macromedia adobe flash paper to be able to read anything. Please help....
-
Autotype ant task and java source file having method which returns hashmap
Hi Friends, I am using autotype ant task to generate types.xml and supporting java classes. The task is defined as follows . <target name="std"> <source2wsdd javaSource="HelloWorld.java" typesInfo="types.xml" ddFile="ddfiles/web-services.xml" service
-
DHCP Not Functioning Correctly
Our organization just purchased 2 XServe Intel servers. Along with those servers, we ordered 2 Netgear ProSmart 24 port Switches. Here is my problem: I enabled DHCP on the server on 2 of my network ports (the 2 connected to the switches), but the swi
-
Adding CBO Tables ... Nobody help me !!!
Hi everybody, Now I want to add some CBO tables in BD. And when user input and save data on SBO GUI, it also input data into the CBO table. I done, I created trigger on system table (JDT1) for inserted to CBO table but when save data, system mess