Webservice with attachments
Hi All,
I wanted to checkin a document as an Attachment via web service in UCM. When i run the service from the client i get an error message saying Content item 'CT_000014' was not successfully checked in. The content item must have a primary file. I read in a thred on the forum that UCM's default behavirous is send the doc as attachment. is this correct, do I need to do something else to enable this behaviour.
many thanks,
sapan
Edited by: user577672 on Aug 4, 2010 2:40 PM
PS. I have tried setting responseType and Content_type variable but i still got the same error.
Hi,
This is a sample SOAP request for CheckInUniversal web service:
<?xml version='1.0' ?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Body>
<idc:service xmlns:idc="http://www.oracle.com/IdcService/" IdcService="CHECKIN_UNIVERSAL">
<idc:document dDocName="SoapUpload2" dDocAuthor="sysadmin" dDocTitle="Soap Upload 2 Document" dDocType="ADACCT" dSecurityGroup="Public" dDocAccount="">
<idc:file name="primaryFile" href="C:/stellent/custom/Soap/JavaSamples/SoapClientUpload/soaptest.doc">
</idc:file>
</idc:document>
</idc:service>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
source: http://download.oracle.com/docs/cd/E10316_01/cs/cs_doc_10/sdk/soap/wwhelp/wwhimpl/js/html/wwhelp.htm
Regards,
Stoyan
Similar Messages
-
Problem in webservice with Attachments
Hi,
I am having a simple java class with create attachment method.That method takes the byte array as argument and writes that file to the hard disk.I am exposing this method as a
webservice,so that that webservice is used as external service in Application service.In the NW Studio there is no option to make transport type as "SOAP with attachments".Is it the right way to use byte array in webservices.Is there any other way such as XOP,MTOM ..Can anybody help me out on this regard.
Thanks,
sudhirHi please check the link below.
https://app.primecontract.com/ua/webhelp/webwfp/wf_attachments_bg.html
http://www.uiowa.edu/hr/imfo/workflow/attachment.pdf
Murthy. -
WebService with attachments. How?
Hi,
i have a WebService which send an attachment. I've generated
the webservices classes, but i'm receive an error if i try to call
the service
TypeError: Error #1083: Das Präfix "0.urn" für
Element "0.urn:uuid:[email protected]" ist
nicht gebunden.
is somebody knows an flex example where i can see how to do
this? (maybe i do something wrond)
Use flex3builder RELEASEHi yevgen,
SOAP MTOM seems not to
be supported by flex 3. There is an "unresolved"
entry in
the bug database.
Here is another
link
, but for flexbuilder 2!!!!!!!!!!!, which may give you some more
infos about the support of webservice. Didn´t found a similar
doc for flex 3.
kcell -
Jdeveloper 11g : Generating webservices with streaming attachments support
Hi,
We are trying to create a Java Webservice with support for streaming attachments. In 10g we are using the Attachments API from the oracle.webservices.attachments package.
In Jdev 10g we were doing it the following way:
public String getXMLFile(String name,String fileName,Attachments atts) throws RemoteException
try
AttachmentFactory factory = AttachmentFactory.newInstance();
Attachment imageAtt = factory.createAttachment(fileName, "text/plain", new FileInputStream(fileName));
atts.getOutgoingAttachments().addAttachment(imageAtt);
} catch (Exception e) {
System.out.println(e.getMessage());
return "Hello " + name;
This webservice is deployed in Oracle AS.
How do we do it in Jdev 11g and we want to deploy the service in WLS 10.1.3. If we try to create a webservice over this class in Jdev 11g we get the error :"no-arg default constructor not present".
Any pointers would be highly appreciated.
Thanks and Regards,
PritomHi Vishal,
I created the class as mentioned in the link. But when I try to test the web service, I get the following error :
weblogic.application.ModuleException: [HTTP:101216]Servlet: "oracle.apps.ddr.testFileDownload" failed to preload on startup in Web application: "Application7-Project1-context-root".
javax.xml.ws.WebServiceException: Annotation @com.sun.xml.internal.ws.developer.StreamingAttachment(parseEagerly=true, dir=, memoryThreshold=40000) is not recognizable, atleast one constructor of class com.sun.xml.internal.ws.developer.StreamingAttachmentFeature should be marked with @FeatureConstructor
at com.sun.xml.ws.binding.WebServiceFeatureList.getWebServiceFeatureBean(WebServiceFeatureList.java:176)
at com.sun.xml.ws.binding.WebServiceFeatureList.parseAnnotations(WebServiceFeatureList.java:148)
at com.sun.xml.ws.binding.WebServiceFeatureList.<init>(WebServiceFeatureList.java:113)
Any ideas on how I can make it work ?
Thanks and Regards,
Pritom -
Webservice for soap with attachments
HI
I am try to develop webservice for soap with attachments for the sending images like jpg,tiff,gif.
it works fine when I statically attach the file
but when i pass dynamically the file name it will give me error for the call.invoke() method
Following is the code and the error details
I am using eclipse wtp2.0 and using weblogic appserver 8.1 and axis-1.4
that is my configuration details.
// This is my service code
import java.io.File;
import java.io.IOException;
import javax.activation.DataHandler;
import javax.activation.FileDataSource;
import javax.mail.MessagingException;
import javax.xml.soap.AttachmentPart;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPBodyElement;
import javax.xml.soap.SOAPElement;
import javax.xml.soap.SOAPPart;
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPMessage;
import org.apache.axis.Message;
import org.apache.axis.MessageContext;
import org.apache.axis.message.SOAPEnvelope;
//import org.apache.axis.soap.MessageFactoryImpl;
import com.sun.corba.se.spi.activation.Repository;
public class AttachmentServer1
SOAPMessage msg = null;
Message response= null;
FileDataSource fileSource;
DataHandler dataHandler = null;
MessageContext context = null;
public void sendImage(String fileName) throws MessagingException, IOException{
try {
//java.lang.System.setProperty("javax.xml.soap.MessageFactory","com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl");
java.lang.System.setProperty("javax.xml.soap.MessageFactory","org.apache.axis.soap.MessageFactoryImpl");
MessageFactory fac = MessageFactory.newInstance();
msg = fac.createMessage();
context = MessageContext.getCurrentContext();
response = context.getRequestMessage();
if(msg != null){
System.out.println("From inside if statement");
//File f = new File("D:/1.png");
File f = new File(fileName);
fileSource = new FileDataSource(f);
dataHandler =new DataHandler(fileSource);
System.out.println("From inside if statement 1");
AttachmentPart part = msg.createAttachmentPart(dataHandler);
System.out.println("From inside if statement part");
//part.setContentType("image/jpeg");
//part.setMimeHeader("Content-Type", "image/jpg");
//part.setContent(dataHandler, "image/jpg");
SOAPPart soapPart = msg.getSOAPPart();
javax.xml.soap.SOAPEnvelope envelope = soapPart.getEnvelope();
SOAPBody body = envelope.getBody();
SOAPBodyElement bodyElement = body.addBodyElement(envelope.createName("attach"));
SOAPElement element = bodyElement.addChildElement(envelope.createName("parent"));
System.out.println("From inside if statement 2");
part.setContentId("axis");
msg.addAttachmentPart(part);
element.addAttribute(envelope.createName("href"), part.getContentId());
System.out.println("From inside if statement 3");
msg.saveChanges();
System.out.println("From inside if statement 4");
System.out.println(part.getContentId());
}else
try {
throw new Exception("Responce message is null");
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SOAPException e) {
// TODO Auto-generated catch block
e.printStackTrace();
// This is the client code
import java.io.File;
import java.io.FileOutputStream;
import java.util.Iterator;
import javax.activation.DataHandler;
import javax.xml.namespace.QName;
import javax.xml.soap.AttachmentPart;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPException;
import org.apache.axis.Message;
import org.apache.axis.MessageContext;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.message.SOAPEnvelope;
public class AttachmentClient {
public static void getImage(){
try{
String endPoint = "http://localhost:7001/Test/services/AttchmentServer";
Service service = new Service();
Call call = (Call)service.createCall();
call.setOperationName(new QName("sendImage"));
call.setTargetEndpointAddress(endPoint);
call.setUseSOAPAction(true);
call.invoke(new Object[] {});
MessageContext context = call.getMessageContext();
Message msg = context.getCurrentMessage();
Iterator obj = msg.getAttachments();
while(obj.hasNext()){
try{
AttachmentPart part = (AttachmentPart) obj.next();
File graphFile = new File("test.jpg");
FileOutputStream outputStream = new FileOutputStream(graphFile);
DataHandler dataHandler = part.getDataHandler();
if(dataHandler != null){
dataHandler.writeTo(outputStream);
outputStream.flush();
System.out.println("File Saved at:"+graphFile.getAbsolutePath());
}else{
System.out.println("null");
}catch(Exception e){
e.printStackTrace();
}catch(Exception e){
e.printStackTrace();
public static void main(String args[]) throws SOAPException
getImage();
// The error is something like that
- Exception:
java.lang.RuntimeException: javax.mail.MessagingException: Error in input stream;
nested exception is:
java.io.IOException: End of stream encountered before final boundary marker.AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: javax.mail.MessagingException: Error in input stream;
nested exception is:
java.io.IOException: End of stream encountered before final boundary marker.
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:javax.mail.MessagingException: Error in input stream;
nested exception is:
java.io.IOException: End of stream encountered before final boundary marker.
at javax.mail.internet.InternetHeaders.load(InternetHeaders.java:122)
at javax.mail.internet.InternetHeaders.<init>(InternetHeaders.java:93)
at org.apache.axis.attachments.MultiPartRelatedInputStream.readTillFound(MultiPartRelatedInputStream.java:499)
at org.apache.axis.attachments.MultiPartRelatedInputStream.readAll(MultiPartRelatedInputStream.java:433)
at org.apache.axis.attachments.MultiPartRelatedInputStream.getAttachments(MultiPartRelatedInputStream.java:439)
at org.apache.axis.attachments.AttachmentsImpl.mergeinAttachments(AttachmentsImpl.java:171)
at org.apache.axis.attachments.AttachmentsImpl.getAttachmentByReference(AttachmentsImpl.java:341)
at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:617)
at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.populateDataHandler(JAFDataHandlerDeserializer.java:74)
at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:59)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:345)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at org.apache.axis.client.Call.invoke(Call.java:2467)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at AttachmentClient2.getImage(AttachmentClient2.java:27)
at AttachmentClient2.main(AttachmentClient2.java:58)
{http://xml.apache.org/axis/}hostname:solusoft18
javax.mail.MessagingException: Error in input stream;
nested exception is:
java.io.IOException: End of stream encountered before final boundary marker.
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.attachments.MultiPartRelatedInputStream.readTillFound(MultiPartRelatedInputStream.java:609)
at org.apache.axis.attachments.MultiPartRelatedInputStream.readAll(MultiPartRelatedInputStream.java:433)
at org.apache.axis.attachments.MultiPartRelatedInputStream.getAttachments(MultiPartRelatedInputStream.java:439)
at org.apache.axis.attachments.AttachmentsImpl.mergeinAttachments(AttachmentsImpl.java:171)
at org.apache.axis.attachments.AttachmentsImpl.getAttachmentByReference(AttachmentsImpl.java:341)
at org.apache.axis.encoding.DeserializationContext.getObjectByRef(DeserializationContext.java:617)
at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.populateDataHandler(JAFDataHandlerDeserializer.java:74)
at org.apache.axis.encoding.ser.JAFDataHandlerDeserializer.startElement(JAFDataHandlerDeserializer.java:59)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:345)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at org.apache.axis.client.Call.invoke(Call.java:2467)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at AttachmentClient2.getImage(AttachmentClient2.java:27)
at AttachmentClient2.main(AttachmentClient2.java:58)
Caused by: javax.mail.MessagingException: Error in input stream;Hi David,
The "covert byte[] to a base64 encoded string" solution, is probably your best
bet given the scenario you described.
Regards,
Mike Wooten
"David Ruana" <[email protected]> wrote:
>
Weblogic 6.1 (SP2) does not support SOAP with attachments. In the meanwhile,
what
is the best approach in order to send a SOAP message which has binary
data?
My EJB is currently receiving a byte[] and returning also a byte[]. The
only solution
I can think of right now is to convert the byte[] into a String in base64
format.
Would you recommend that?
Thanks in advance. -
WLS7 WebServices SOAP with attachments problem
I have implemented a WebService in Weblogic. If I use the standard Sun
JAXM library to invoke the service without any attachments, it works
fine. However, if I use the standard JAXM functionality to add a gif
image to the message, Weblogic throws an exception (attached below)
before it even invokes the handler class for my Web Service.
Basically, the JAXM library does not insert the "start=..." element in
the top level "Content-Type" HTTP header field. Should Weblogic cope
with this, or is it not designed to work with the Sun JAXM library. I
am using the latest version of the Sun WebServices Developers Kit and,
hence, the latest version of the JAXM library. Do BEA recommend a
different client library be used to invoke Weblogic WebServices? If
so which one(s) are supported?
I have another question. Assuming I can find a client which will
deliver to Weblogic an HTTP SOAP mesage that it considers to be valid,
how do attachments get passed to the "component" class? I understand
how I could iterate through the mime segments / attachments from
within the "handler", but I don't understand how / if attachments are
passed onto the actual component class. Reading from the FAQ:
Q. Does WebLogic Server 7.0 support SOAP Messages with Attachments?
A. Yes. As long as the data type of the attachment is on the list of
supported JAX-RPC data types, then WebLogic Server will automatically
handle parameters to Web services that are SOAP attachments. If you
want to do further processing of the attachment, you can use handlers
to intercept the request and response SOAP message (which includes the
attachment.)
I get the impression that attachments are "magically" available to
code within the component, but I don't understand the actual mechanics
of this.
Any thoughts would be gratefully received.
Cheers,
Steve
javax.xml.soap.SOAPException: No start attachment specified in the
Multipart/Rel
ated document
at weblogic.webservice.core.soap.SOAPMessageImpl.handleMimeMessage(SOAPM
essageImpl.java:174)
at weblogic.webservice.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.
java:118)
at weblogic.webservice.core.soap.MessageFactoryImpl.createMessage(Messag
eFactoryImpl.java:27)
at weblogic.webservice.binding.soap.HttpServerBinding.receive(HttpServer
Binding.java:50)
at weblogic.webservice.core.DefaultWebService.invoke(DefaultWebService.j
ava:216)
at weblogic.webservice.server.servlet.ServletBase.serverSideInvoke(Servl
etBase.java:362)
at weblogic.webservice.server.servlet.WebServiceServlet.serverSideInvoke
(WebServiceServlet.java:269)
at weblogic.webservice.server.servlet.ServletBase.doPost(ServletBase.jav
a:346)
at weblogic.webservice.server.servlet.WebServiceServlet.doPost(WebServic
eServlet.java:237)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:401)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5412)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:744)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3086)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
<08-Jan-03 15:22:54 GMT> <Error> <HTTP> <101017>
<[ServletContext(id=2655643,nam
e=mms_service_05.war,context-path=/mms_service_05)] Root cause of
ServletExcepti
on
javax.xml.soap.SOAPException: No start attachment specified in the
Multipart/Rel
ated document
at weblogic.webservice.core.soap.SOAPMessageImpl.handleMimeMessage(SOAPM
essageImpl.java:174)
at weblogic.webservice.core.soap.SOAPMessageImpl.<init>(SOAPMessageImpl.
java:118)
at weblogic.webservice.core.soap.MessageFactoryImpl.createMessage(Messag
eFactoryImpl.java:27)
at weblogic.webservice.binding.soap.HttpServerBinding.receive(HttpServer
Binding.java:50)
at weblogic.webservice.core.DefaultWebService.invoke(DefaultWebService.j
ava:216)
at weblogic.webservice.server.servlet.ServletBase.serverSideInvoke(Servl
etBase.java:362)
at weblogic.webservice.server.servlet.WebServiceServlet.serverSideInvoke
(WebServiceServlet.java:269)
at weblogic.webservice.server.servlet.ServletBase.doPost(ServletBase.jav
a:346)
at weblogic.webservice.server.servlet.WebServiceServlet.doPost(WebServic
eServlet.java:237)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:401)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
pl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
n.run(WebAppServletContext.java:5412)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:744)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
rvletContext.java:3086)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
pl.java:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
>
import javax.activation.DataHandler;
public class EchoAttachmentService implements com.bea.jws.WebService
static final long serialVersionUID = 1L;
* @common:operation
* @jws:protocol form-get="false" form-post="false"
public String echoAttachment(DataHandler dh)
return("***Service received DataHandler of type: " + dh.getContentType());
Error Description:
ERROR: EchoAttachment.jws:19: Java type DataHandler is unsupported over a web
service.
SUGGESTION: Use a supported type such as a class with public fields, a JavaBean,
a primitive type, String, BigInteger/BigDecimal, Calendar, GDate/GDuration, QName,
URI, byte[], or an XMLBeans type. -
SOAP Receiver adapter with attachments not working
Hello,
I have a simple synchronous scenario like this; ABAP proxy with attachments to SOAP with attachments.
The SOAP receiver adapter has been configured with the parameters 'Do not Use SOAP envelope' and 'Keep attachments'. We create our own SOAP envelope with custom SOAP headers, so that's the reason for the 'Do not use SOAP envelope' setting.
When we test the scenario with an attachment then we get a timeout from PI. However, when we test the same scenario without any attachment then no errors occur.
The external webservice has also been tested with SOAP UI and it works fine.
Do you have any clues what the problem can be? What are we still missing in the configuration?
We did try with the adapter modules such as PayloadSwapBean and the Message TransformBean, so far without success...
Many thanks.
RobertoHi Stefan,
The attachments are not really big, around 150KB.
According to the other party (Oracle Service Bus) no messages with attachments have been received. In fact it seems like those messages never leave the PI server. SOAP requests without attachments are processed successfully.
Thanks
Roberto -
How to send a SOAP message with attachments
How to send a SOAP message with attachments thru webservice using axis-1_3 can any one sujjest.............................
Please refer
http://www.javaworld.com/javaworld/jw-09-2003/jw-0912-webservices.html
http://xml.sys-con.com/read/40315.htm -
Binary Attachments - MTOM vs. SOAP with Attachments
Hello everybody,
i am kind of stuck by implementing a soap to proxy scenario! I wanted to use MTOM to transfer the messages together with the attachments, but until now i couldn't find out if this is possible at all using the ws-adapter with backend proxy (version 701)!
I have seen this already:
http://help.sap.com/saphelp_nwpi711/helpdata/de/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm
unfortunately im not a abap coder, but i can see using attachments in proxys should work!
But how? Am i forced to used soap with attachments on sending webservice? If yes, have you got an example for me?
I would appreciate any help!
Thanks in advance,
MarkusHi Amar,
thanks for your reply, i know the mtom theory, but i don't know how to do it with sap pi on proxy side!
(By the way, your link throws a 404!)
Using soap adapter with enabled "keep Attachments" option, the MTOM-Attachment is getting processed, but on proxy side, using soap adapter (keeping attachments) to call proxy, it crashes on the backend side (version 701).
I tried to make a webservice out of the proxy in soamanager, but i didn't get this working, as i have never done this. Also i didn't find an option for mtom in soamanager. I am also wondering why mtom is only supported in ws-adapter 7.10 but not in 7.11, why is this? And is it possible to use soap-adapter on OB-side and WS-Adapter on IB-side, or can i only use ws-adapter for direct communication?
Lot's of questions i am facing ;-)...
Kind regards,
Markus -
Query on SOAP with attachments with Weblogic
Hi all,
I'm new to webservice and workshop, and I have to develop a webservice using bea workshop to be able to process multiple files and store it on a document server. I suppose that the webservice clients will be able to formulate their request in the form of SOAP messages with attachments(documents to be stored), but I'm not sure whether this is the best method and weblogic(8.1) supports it.
Currently I have created a jws file which has successfully connected and been authenticated by the Document server, so for my next step, I'm trying to create a new file in the document server but I'm stuck at trying to write code to get attachment from the SOAP message in the jws file. Can anyone enlighten me?
Thanks!Hi
WebLogic Workshop web services can exchange one or more SOAP attachments.
There is a sample and information on how to do that under the link
http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/getstarted/conUsingSOAPAttachments.html
Thanks
Vimala -
Hi,
I want to develop a scenario like below
1. When IDOC is triggered from R/3 then XI should get the IDOC data and pass the data as an attachment to the webservice
2. Get the response from the webservice and if there is any failure send the error details as mail.
Is this scenario can be acheived with out BPM since its an synchronous one and we have to actually trigger mail based on the response returned from Webservice.
In the WSDL file which we have received, is having the below structure
<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ueb="Interface1">
<soapenv:Header/>
<soapenv:Body>
<ueb:Publish>
<aClientId>TEST</aClientId>
<aUser>test</aUser>
<aPassword>****</aPassword>
<aDomain>test</aDomain>
<aApplication>AP</aApplication>
<aSchema>ORDERS</aSchema>
<aDestination>Target</aDestination>
<aReference>1111</aReference>
<aMessage>cid:testfile.txt</aMessage>
<aMessageFormat>10</aMessageFormat>
<aDuplicates>0</aDuplicates>
</ueb:Publish>
</soapenv:Body>
</soapenv:Envelope>
Please suggest how can i send with attachments to Webservice.
Thanks..
DineshHi Abshikek,
Thanx for your quick response...This is WSDL file we have got from user
By assigning IDOC data to "aMessage" field and checking the "Keep Attachments" option in SOAP receiver adapter, XI will be able to send as attachments?
Actually 3rd party have given a sample soap query where they are assigning value as given below
<aMessage>cid:file.txt</aMessage>
Please suggest us?
<definitions
name="UPSRInterfaceServiceName"
targetNamespace="UPSRInterface"
xmlns:tns="UPSRInterface"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/">
<message name="TPSRInterface_CalcWS">
<part name="aClientId" type="xsd:string"/>
<part name="aUser" type="xsd:string"/>
<part name="aPassword" type="xsd:string"/>
<part name="aDomain" type="xsd:string"/>
<part name="aApplication" type="xsd:string"/>
<part name="aSchema" type="xsd:string"/>
<part name="aDestination" type="xsd:string"/>
<part name="aReference" type="xsd:string"/>
<part name="aMessage" type="xsd:string"/>
<part name="aMessageFormat" type="xsd:int"/>
<part name="aDuplicates" type="xsd:int"/>
</message>
<message name="TPSRInterface_CalcWSResponse">
<part name="return" type="xsd:string"/>
</message>
<portType name="UPSRInterfacePortType">
<operation name="TPSRInterface_CalcWS">
<input message="tns:TPSRInterface_CalcWS"/>
<output message="tns:TPSRInterface_CalcWSResponse"/>
</operation>
</portType>
<binding name="UPSRInterfacPSRnding" type="tns:UPSRInterfacePortType">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
<operation name="TPSRInterface_CalcWS">
<soap:operation soapAction="urn:UPSRInterface#TPSRInterface_CalcWS" style="rpc"/>
<input>
<soap:body use="literal" namespace="UPSRInterface" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="literal" namespace="UPSRInterface" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
</operation>
</binding>
<service name="UPSRInterfaceService">
<port name="UPSRInterfacePort" binding="tns:UPSRInterfacPSRnding">
<soap:address location="https://testserver.com:9000"/>
</port>
</service>
</definitions>
Thanks & Regards,
Dinesh -
hi,
I want weblogic webservice with DIME.
I not know weblogic 8.1 webservice support DIME type.
Please asked me this qustion and i'm not achivement this goal.
Some hint, some reference document or some source file send to me.
thank your advice.Hi Shon,
A word of caution:
DIME is not a widely-adopted encoding format for doing SwA (SOAP with Attachments).
This fact is somewhat borne out by how Microsoft has positioned it as "one of
the encoding formats" supported with their WS-Attachment note (or recommendation,
or whatever).
That said, you may be able to use a JAX-RPC Handler to create/process DIME attachments,
with WLS and WLW web services. If not, the next best bet is to use a Servlet filter,
in front of the Servlet that serves as the router for a WebLogic Web Service.
Neither of these approaches is "simple", but they aren't "rocket science" either.
You'll need to download the Java DIME Library from Onion Networks (http://onionnetworks.com/downloads/dime-1.0.3.zip),
to do either of these.
Regards,
Mike Wooten
shon <[email protected]> wrote:
Hi Bruce Stephens.
Thank your advice.
I visited advice url, But i'm not understand that how to use Java Dime
Libray v1.0.3. If you have some example source or some reference file,
send to my e-mail address.
Thank your advice -
Can not view (some) emails with attachments
There has already been some discussion about individuals getting the "This message has not been downloaded from the server" error.
http://discussions.apple.com/message.jspa?messageID=4983643
Has anyone found a solution to this problem? I am using GMail and am having problems reading (some) emails with attachments. I can read the first several lines through the preview view, but can not open (some) emails without getting the "This message has not been downloaded from the server" error.
The problem appears to be completely random. The problem occurs sometimes after I open the email on my computer, and other times it occurs before I open the email on my computer. And sometimes opening the email on my computer does not cause any problem opening the email on my phone.
I have seen this problem on two different phones now and have re-created the email accounts on both phone several times. But the problems keeps (eventually) appearing--for some, but not all emails.
PowerBook G4, Macintosh 512K iPod nano (2nd Gen 8GB), iPhone (8GB)So, I think things are actually sending/downloading and it's just taking time and the iphone is defaulting to the error message.
I don't think that's the case. I have several week-old messages on my iPhone (each under 300k) that still say "The message has not been downloaded from the server."
I've been connected to wifi for over an hour now, so that's plenty of time to downloaded these few small emails. I can read the "preview" of the message from the Inbox screen, but when I click on the message itself, I get the error.
And, those messages with the attachments that I was able to open this morning? I can no longer open them now. Very, very frustrating. -
Problem when adding ABAP custom webservice with Visual Studio 2010
Hi All,
After creating a webservice for a custom RFC function developed in a ECC6.0 SAP machine, I tried to add it to a Visual Studio 2010 windows aplication (through a web reference connection).
The sequence I've done is:
- Create RFC in ABAP, with testing ok
- Create a WEBSERVICE with the ABAP editor
- Configured the webservice with SICF with:
Procedure: Standard
Logon data: standard R3 user
Security requirement: Standard
Authentication: Standard SAP User
Then, in SOAMANAGER I copied the webservice URL and tried to add it to Visual Studio 2010, but it keeps asking me the user and password. I try to supply the R3 username and password but if fails.
Why is ECC6.0 asking the user and passord if I've defined a SAP user for the login process?
Is there any way to disable this?
Thanks,
Manuel DiasHello Manuel,
You can use the following code:
CredentialCache cache = new CredentialCache();
cache.Add(new Uri("WEBSERVICEURL:PORTNUMBER/"), "Basic", new NetworkCredential("USERNAME", "PASSWORD"));
SAP needs a password.
Kind regards,
JK -
Problem with attachments and antivirus.scanners
Hi!
Problem is: Sending any attachment from Tiger (10.4.8) mail, all attachments are removed by a virus scanner at receiving end:
This message was modified by F-Secure Anti-Virus E-Mail Scanning.
Tried Windows friendly, text only, repair permissions, sending under other isp etc. no help.
If this same message with same attachment is send from next mac with Panther, it is received ok.
Receiving company is big and wont alter their virus-scanners and the problem clearly lies in Tiger.
Any help welcome.
Mac OS X (10.4.8)The subject of your message should have been "Problems with attachments and F-Secure antivirus" since this is not a problem with all antivirus software, only with F-Secure.
Check this thread for a possible temporary solution when sending attachments to those who use F-Secure.
http://discussions.apple.com/thread.jspa?messageID=2837384�
Maybe you are looking for
-
How to embed a screenshot into a topic post/topic reply.
Hi all, I wasn't sure which forum to post my question in, so since all my Discussions stuff opens in a browser window, I thought it might as well be in the Safari forum. My query is two-fold: 1. How do I embed a screenshot into a reply so that the sc
-
Application specific keyboard shortcuts missing
Hey all, Just noticed that the 2 or 3 app specific keyboard shortcuts I set up in sys prefs are no longer listed. They work, but don't show up in sys prefs for keyboard shortcuts. This means I can't edit the existing ones if need be. I also don't exa
-
Role assignment in Guided Procedures
Hi experts I have created a guided procedure which is having one level approval. This GP is having three actions. 1) Raise request 2) Approval Depending on the initiator the request goes to the corresponding manager for the Approval of the request. F
-
Purchased music no longer listed as "Purchased"
Hello, I moved my music library from my internal iMac HD to an external HD. I had to reassign the music library link in the properties and add the music files back into iTunes by selecting "add to library" from the File menu. Now, even though I have
-
Hello, On BI 7.0 system I am seeing following information when i use t-code SM50. I am seeing below 3 similarjobs . I would like know why 3 jobs are running simultaneous? Proces Overview Type: BGD Status: Running Report: CL_RSDMD_UPDATE_MASTER_DATA==