Attachment envelope

I am using Form Manager as the interface for accessing forms for use with a workflow. I don't want the attachment envelope to appear. How do I disable it?

Hi Jared
There's a checkbox on one of the tabs on the User QPAC that indicates whether you want the attachments area to appear or not. (I think it's the Routes tab from memory.) This applies when forms appear in your Task List.
As far as I'm aware, there is no way of controlling this for the forms that are uploaded to the "Forms" area of Form Manager - however, the default did change in one of the more recent releases (it's now hidden by default).
Howard
http://www.avoka.com

Similar Messages

  • How to get rid of the attachment envelope?

    I am using Form Manager as the interface for accessing forms for use with a workflow. I don't want the attachment envelope to appear. How do I disable it?

    That toolbar/ct plugin causes problems for all who install it!
    Close Safari, then locate and delete the following files and it should be gone:
    /Library/Application Support/Conduit
    /Library/InputManagers/CTLoader
    /Library/Receipts/ctloader.pkg
    /Library/Receipts/<Toolbar name>.pkg
    /Library/Application Support/SIMBL/Plugins/CT2285220.bundle
    /Users/<User name>/Library/Application Support/Conduit
    where / is the root library on your Hard Disk.
    If you are running Snow Leopard you should also look here:
    Library/launchAgents/com.conduit.loader.agent.plist
    Library/Application support/conduit plugins
    Note: Safari does not support any third-party toolbars except those supplied as an extension to Safari via the Extension Gallery.

  • MIME envelope with no attachment

    Hi Everyone,
    We have a SOAP receiver comm channel with the flag "keep attachments" checked. We noticed that if we send a SOAP message without an attachment it sends a regular XML file (no MIME envelope), but if we have an attachment we get the MIME envelope with the body as a SOAP envelope and the attachments as an attachment part of the MIME envelope.
    Is their a way to foce the MIME envelope to alway be sent out or will the standard SOAP adapter only output the MIME envelope when an attachment is present.
    Also when there is an attachment will the XML message always be the first part in the MIME envelope or does this randomly change. We noticed at least one message where the XML message was the last part in the MIME.
    Regards,
    Joe

    > Is their a way to foce the MIME envelope to alway be sent out or will the standard SOAP adapter only
    > output the MIME envelope when an attachment is present.
    You could provide an empty attachment. This would force a MIME type multipart/related and two parts.
    > Also when there is an attachment will the XML message always be the first part in the MIME envelope
    > or does this randomly change. We noticed at least one message where the XML message was the
    > last part in the MIME.
    The first part of the multipart message is the XI message payload and receives the SOAP header. The following parts are the XI message attachements.
    If this is different in your system, then it is a bug.
    Regards
    Stefan

  • When I receive mail with an attachment on my I pad, the email shows the attachment (paper clip) but when I try to open it it just shows an envelope under the heading mail

    I can't open any attachments received with my e mails despite it showing that there is attachment included

    Actually I have not received a response to my query yet!!
    Please disregard "This helped me "

  • "Content is not allowed in prolog" with SOAP Attachment

    I'm writing an application using SAAJ that sends a soap message to a servlet which responds with some information, including HTML which the client application will display. The HTML has to go into a SOAP attachment so the tags won't get confused with XML.
    I had the whole thing working with plain text sending within a normal node, and I only switched a few lines to make that text an attachment with HTML instead, but now I'm getting the exception "Content is not allowed in prolog" on the Client side when it tries to create the envelope from the SOAPMessage.
    Code for building answering SOAPMessage with attachment (Servlet to Client)
         public static SOAPMessage buildXML(Message newMessage){
              SOAPMessage msg = null;
              try {
                   MessageFactory msgFactory = MessageFactory.newInstance();
                   msg = msgFactory.createMessage();
                   // Create an envelope in the message
                   SOAPEnvelope envelope = msg.getSOAPPart().getEnvelope();
                   msg.setProperty(SOAPMessage.WRITE_XML_DECLARATION, "true");
                   msg.setProperty(SOAPMessage.CHARACTER_SET_ENCODING, "UTF-8");
                   //Get hold of the the body
                   SOAPBody body = envelope.getBody();
                   SOAPElement soap_message = body.addChildElement("MESSAGE");
                   if (newMessage.message_type != null){
                        SOAPElement soap_message_type = soap_message.addChildElement("MESSAGETYPE");
                        soap_message_type.addTextNode(newMessage.message_type);
                   if (newMessage.questionID != 0){
                        SOAPElement soap_questionID = soap_message.addChildElement("QUESTIONID");
                        soap_questionID.addTextNode("" + newMessage.questionID);
                   if (newMessage.username != null){
                        SOAPElement soap_username = soap_message.addChildElement("USERNAME");
                        soap_username.addTextNode(newMessage.username);
                   if (newMessage.password != null){
                        SOAPElement soap_password = soap_message.addChildElement("PASSWORD");
                        soap_password.addTextNode(newMessage.password);
                   if (newMessage.message_text != null){
                        AttachmentPart soap_message_text = msg.createAttachmentPart("<html><body>" + newMessage.message_text + "</body></html>", "text/html");
                        soap_message_text.setContentId("MESSAGETEXT");
                        msg.addAttachmentPart(soap_message_text);
                        //SOAPElement soap_message_text = soap_message.addChildElement("MESSAGETEXT");
                        //soap_message_text.addTextNode(newMessage.message_text);
                   if (newMessage.sampleString != null){
                        SOAPElement soap_password = soap_message.addChildElement("SAMPLESTRING");
                        soap_password.addTextNode(newMessage.sampleString);
                   SOAPElement tmpEl;
                   for (int i=0; i<newMessage.numArrayUsed; i++){
                        tmpEl = soap_message.addChildElement("SAMPLEINT");
                        tmpEl.addTextNode("" + newMessage.sampleInt);
                   msg.saveChanges();
              } catch (Exception e) {
                   e.printStackTrace();
              return msg;
    You can see in the area where it adds MESSAGETEXT there are two clients commented out which work. The three lines above it are what changed to make it an attachment instead.
    Code in Client for recieving reply from Servlet
    SOAPMessage reply = connection.call(soap_msg, endpoint);
    System.out.println("\nReceived reply from: " + endpoint);
    reply.writeTo(System.out);
    System.out.println("");
    reply_msg = ProcessXML.parse(reply);This is the console output:
    Edit: These forums seem to be inserting an extra > before the <?xml version="1.0" encoding="UTF-8"?> line, but it doesn't exist in the code I'm pasting
    Received reply from: http://localhost:8080/kuj/CaseStudyServlet
    ------=_Part_2_371807.1137465625031
    Content-Type: text/xml; charset=UTF-8
    <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Header/><SOAP-ENV:Body><MESSAGE><MESSAGETYPE>deliverquestion</MESSAGETYPE><QUESTIONID>1</QUESTIONID><USERNAME>zac</USERNAME></MESSAGE></SOAP-ENV:Body></SOAP-ENV:Envelope>
    ------=_Part_2_371807.1137465625031
    Content-Type: text/html
    Content-Id: MESSAGETEXT
    <html><body>This is an Array sort Question. You will be given 10 random integers and you must sort and return them in the order of greatest to least.</body></html>
    ------=_Part_2_371807.1137465625031--
    ERROR:  'Content is not allowed in prolog.'
    17-Jan-2006 02:40:25 com.sun.xml.messaging.saaj.soap.EnvelopeFactory createEnvelope
    SEVERE: SAAJ0511: Unable to create envelope from given source
    com.sun.xml.messaging.saaj.SOAPExceptionImpl: Unable to create envelope from given source:
         at com.sun.xml.messaging.saaj.soap.EnvelopeFactory.createEnvelope(EnvelopeFactory.java:111)
         at com.sun.xml.messaging.saaj.soap.ver1_1.SOAPPart1_1Impl.createEnvelopeFromSource(SOAPPart1_1Impl.java:39)
         at com.sun.xml.messaging.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:98)
         at com.zacwittedesign.xml.ProcessXML.realParse(ProcessXML.java:32)
         at com.zacwittedesign.xml.ProcessXML.parse(ProcessXML.java:26)
    (snip)And this is the beginning of the code for extracting the info from the SOAPMessage on the Client side:
    private static Message realParse(SOAPMessage msg){
              Message newMessage = new Message();
              try {
                   SOAPEnvelope envelope = msg.getSOAPPart().getEnvelope();
                   SOAPBody body = envelope.getBody();
    (snip)It dies on SOAPEnvelope envelope = msg.getSOAPPart().getEnvelope();
    Does anyone know what I'm doing wrong?

    I suppose I should also include the bit where the Servlet actually SENDs the resulting SOAPMessage
    SOAPMessage msg = ProcessXML.buildXML(outMessage);
    // try to send it
    try {
         response.setContentType("text/xml");
         msg.writeTo(response.getOutputStream());

  • Attached image is null

    <?xml version="1.0" encoding="UTF-8"?>
    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
         xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
         xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
         xmlns:soapbind="http://schemas.xmlsoap.org/wsdl/soap/"
         xmlns:tns="http://www.example.org/SOAPAttReceiverWithMessage/"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         targetNamespace="http://www.example.org/SOAPAttReceiverWithMessage/">
         <types>
              <xsd:schema
                   targetNamespace="http://www.example.org/SOAPAttReceiverWithMessage/"
                   xmlns:tns="http://www.example.org/SOAPAttReceiverWithMessage/"
                   xmlns:xsd="http://www.w3.org/2001/XMLSchema">
                   <xsd:element name="InfoMessage" type="xsd:string" />
              </xsd:schema>
         </types>
         <message name="imageMsg">
              <part element="tns:InfoMessage" name="body" />
              <part name="image" type="xsd:hexBinary" />
         </message>
         <message name="empty" />
         <portType name="AttachmentWithMessage">
              <operation name="sendImageAndMessage">
                   <input message="tns:imageMsg" />
                   <output message="tns:empty" />
              </operation>
         </portType>
         <binding name="AttachmentWithMessageBinding"
              type="tns:AttachmentWithMessage">
              <soap:binding style="rpc"
                   transport="http://schemas.xmlsoap.org/soap/http" />
              <operation name="sendImageAndMessage">
                   <soap:operation soapAction="" />
                   <input>
                        <soap:body parts="body" use="literal" />
                        <mime:multipartRelated>
                             <mime:part>
                                  <mime:content part="image" type="image/gif" />
                             </mime:part>
                        </mime:multipartRelated>
                   </input>
                   <output>
                        <soap:body use="literal" />
                   </output>
              </operation>
         </binding>
         <service name="AttachmentWithMessageService">
              <port binding="tns:AttachmentWithMessageBinding"
                   name="AttachmentWithMessage">
                   <soap:address
                        location="URL" />
              </port>
         </service>
    </definitions>Endpoint generated form WSDL
    public class AttachmentWithMessageBindingImpl implements org.example.www.AttachmentWithMessage{
        public void sendImageAndMessage(java.lang.String body, java.awt.Image image) throws java.rmi.RemoteException {}
             Client
      Name bodyName = soapFactory.createName(
                      "sendImageAndMessage", "tns",
                      "http://www.example.org/SOAPAttReceiverWithMessage/");
                    SOAPBodyElement bodyElement =
                      body.addBodyElement(bodyName);
                    Name name = soapFactory.createName("InfoMessage");
                    SOAPElement info =
                      bodyElement.addChildElement(name);
                    info.addTextNode("This is a info message!");
                    AttachmentPart attachment = message.createAttachmentPart();
                    URL url = new URL("file:///C:/temp/pic.gif");
                    URLDataSource fds = new URLDataSource(url);
                    DataHandler dataHandler = new DataHandler(fds);
                    AttachmentPart attachmentPart =
                      message.createAttachmentPart(dataHandler);
                    attachment.setContentId("image");
                    attachment.setContentType("image/gif");
                    message.addAttachmentPart(attachmentPart);
                    URL endpoint = new URL
                      ("URL");
                   // SOAPMessage response =
                      connection.call(message, endpoint);
                    connection.close();I get the body part right but image is null. SOAP message seems to have this image attached but when I try to access it at the enpoint it's null.
    SOAP message:
    ------=_Part_0_394663814.1176981061039
    Content-Type: text/xml; charset=UTF-8
    Content-Transfer-Encoding: binary
    Content-Id: <841848929844.1176981061039.***>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><tns:sendImageAndMessage xmlns:tns="http://www.example.org/SOAPAttReceiverWithMessage/"><InfoMessage>This is a info message!</InfoMessage></tns:sendImageAndMessage></soapenv:Body></soapenv:Envelope>
    ------=_Part_0_394663814.1176981061039
    Content-Type: image/gif
    Content-Transfer-Encoding: binary
    Content-Id: <83287838504.1176981059055.***>
    GIF89a�h�Any suggestions?

    try {
                   MessageContext context = MessageContext.getCurrentThreadsContext();
                   SOAPMessageContext soapContext = (SOAPMessageContext)context;
                   SOAPMessage msg = soapContext.getMessage();
                   SOAPPart soapPart =     msg.getSOAPPart();
                   SOAPEnvelope envelope = soapPart.getEnvelope();
                   Iterator i = msg.getAttachments();
                   while(i.hasNext())
                        System.out.println("Attachment");
                        AttachmentPart ap = (AttachmentPart)i.next();
                        System.out.println(ap.getContentId());
                        System.out.println(ap.getContentType());
                        System.out.println(ap.getContentLocation());
                        System.out.println(ap.getSize());
                        Object oo = ap.getContent();
                        if(oo==null){
                             System.out.println("oo is nul");
                        DataHandler dh = (DataHandler)ap.getDataHandler();
                        if(dh==null){
                             System.out.println("dh is null");
                        else{
                             Image o = (Image)dh.getContent();
                   }When I try to cast DataHandler.getContent() to java awt.Image I get following exception:
    com.ibm.ws.webservices.engine.attachments.ManagedMemoryDataSource$Instream incompatible with java.awt.Image
    [23.4.2007 16:37:05:862 EEST] 0000002e SystemErr     R java.lang.ClassCastException: com.ibm.ws.webservices.engine.attachments.ManagedMemoryDataSource$Instream incompatible with java.awt.Image
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at org.example.www.AttachmentWithMessageBindingImpl.sendImageAndMessage(AttachmentWithMessageBindingImpl.java:65)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at java.lang.reflect.Method.invoke(Method.java:615)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeMethod(JavaDispatcher.java:178)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.dispatchers.java.JavaDispatcher.invokeOperation(JavaDispatcher.java:141)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processRequestResponse(SoapRPCProcessor.java:447)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.dispatchers.SoapRPCProcessor.processMessage(SoapRPCProcessor.java:412)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.dispatchers.BasicDispatcher.processMessage(BasicDispatcher.java:134)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.dispatchers.java.SessionDispatcher.invoke(SessionDispatcher.java:204)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:227)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.handlers.jaxrpc.JAXRPCHandler.invoke(JAXRPCHandler.java:152)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.handlers.WrappedHandler.invoke(WrappedHandler.java:64)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:227)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.PivotHandlerWrapper.invoke(PivotHandlerWrapper.java:227)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.WebServicesEngine.invoke(WebServicesEngine.java:332)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.transport.http.WebServicesServlet.doPost(WebServicesServlet.java:736)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webservices.engine.transport.http.WebServicesServletBase.service(WebServicesServletBase.java:341)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:966)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3129)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:290)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
    [23.4.2007 16:37:05:893 EEST] 0000002e SystemErr     R      at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
    [23.4.2007 16:37:05:909 EEST] 0000002e SystemErr     R      at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)When sending I print size of the attachment
    Attachment size = 45233
    Size is same when receiving message at server but still it's null.

  • I have to save emails from outlook to my hard drive. When I go to open the email on the HD the attachment is not an attachment anymore. It needs to be. Help?

    My office uses outlook for emails, calendaring, etc. We save as all emails to a specific client related file for easy access and to reduce the items saved in outlook.
    Many of the emails have attachments. I use Firefox (love it) as my browser so when I save as an email it saves it with the Firefox Icon instead of the Outlook Envelope Icon. When I open the email from my computer (not outlook) the attachment name is there but it is not accessible. I have to go to the email in outlook and save the attachment(s) separately in order to access them. I don't want to do that. It takes up to much time and often the attachments are related to the data within the email and they need to be together in their original form.
    If I use Internet Explorer (which I hate) as my browser this does not happen. Can you help me? I really don't want to use IE.
    Thank you.

    I might be able to experiment with this a little.
    Are you running a recent version of Outlook Web App (i.e., Exchange 2010)?
    When you save files using IE, what format are they in (e.g., EML, RTF, HTML)?

  • How to set up link on icon to forward PDF file as email attachment

    HI,
    I need urgent help.
    I know this used to work but cant find it in Acrobat XI.
    We created a file for a client, on the last page is a twitter, facebook and linkedIn icon which are set as links in Indesign to forward to the matching social network. Works fine when I created PDF with Hyperlinks.
    We also set up an envelope symbol which shall get, now where it is set up as PDF,  a link, so the PDF itself can get forwarded as a email attachment.
    I can not find this function on a MAC nor on PC Acrobat XI.
    Hope you can help, much appreciated!!!!
    THANKS

    Have a look at this thread:
    http://forums.adobe.com/thread/1275490?tstart=0
    where there is a script for submitting the PDF by email.

  • How to get greater log detail from Mail.app in Lion (slow attachment caching)

    I have an IMAP account, hosted by FuseMail, that is taking an extraordinary amount of time to catch attachments. I would say it is taking upwards of 10 minutes to cache one attachment. This is causing a side-effect in mail that it keeps spawning new threads for "Fetching new mail" which eventually makes Mail.app thread-bound and it stops responding (see image below of an example of what happened over night when I wasn't there to kill the treads).
    I would like to see a more detailed trascript of the connection with this IMAP server to see if the delay is with the server or with my client. However, I have been unable to capture what I'd like to see:
    If I use the Connection Doctor, turn off all other accounts and look at "Show Detail", I can see some log entries for READS and WRITES (FETCH and PEEK) but it's still difficult to see what's happening between those steps:
    WROTE Sep 17 12:47:39.874 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.socialogue.com -- port:993 -- socket:0x7f8d32e16d30 -- thread:0x7f8d345d7870
    84.46 UID FETCH 7330 BODY.PEEK[2]<4110304.16384>
    WROTE Sep 17 12:47:46.098 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:mail.me.com -- port:993 -- socket:0x7f8d348b91a0 -- thread:0x7f8d34b57490
    DONE
    READ Sep 17 12:47:46.101 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.socialogue.com -- port:993 -- socket:0x7f8d32e16d30 -- thread:0x7f8d345d7870
    * 6869 FETCH (UID 7330 BODY[2]<4110304> {16384}
    READ Sep 17 12:47:46.150 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.socialogue.com -- port:993 -- socket:0x7f8d32e16d30 -- thread:0x7f8d345d7870
    Lvrf+t3/AIKHf8EyPgF/wUD/AGDPFX7BusaZ4f8Ag94JTT9Pj8Cahofh6ydf
    hzfaeFGnzWFqyCOGKONTavFAYGeynubdJYRLvX8gf2Nv2Iv+DgX9hD/gmj4O/YC/Z81n/glBpPjb
    <----8X----snip----8X----->
    7aHwA/4Kf/sXfEv4P/Cn9tD4d6h4b1ZvD3jfQpP+EV+IV9o+rW91Y3Oo3enBb6GWOBZIJJNly08N
    tYW6G0WIzHoP2kP+CZP/AAU1/wCCruj6P8Ef+Cm/7TPwA/Zq/Y40/wDs2+1jwJ+zTLql3qnx
    READ Sep 17 12:47:46.158 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:mail.me.com -- port:993 -- socket:0x7f8d348b91a0 -- thread:0x7f8d34b57490
    47.47 OK Completed
    READ Sep 17 12:47:46.195 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.socialogue.com -- port:993 -- socket:0x7f8d32e16d30 -- thread:0x7f8d345d7870
    O1RL
    ACWTUtU1y3RLO0t9SiS8tbNLS6QpN5c7ST2ltfD9n/gp+yZ8G/2Q/gFqHwJ/Yi+GHwf/AGa9Jh09
    <----8X----snip----8X----->
    hG4+MHwt1nxKNc0bwh5Uaahc2mlTaVFFJ4guZTc3Umoi9thJJcylI7W4Zb6L9Hv+CZ//AARa/YM/
    4JR6drd5+zD8P/EGqfFbV9POk678
    WROTE Sep 17 12:47:46.206 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:mail.me.com -- port:993 -- socket:0x7f8d348b91a0 -- thread:0x7f8d377d87f0
    48.47 NOOP
    READ Sep 17 12:47:46.216 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.socialogue.com -- port:993 -- socket:0x7f8d32e16d30 -- thread:0x7f8d345d7870
    QfFuojUvEWr2P2qS5W2LokdtaxBmiVo7OC3WYWlq04mkiSQf
    gD/wXk/4N6f+Ckn/AAVl/bzu/wBoz4a/E39iDwX8HNF8H6R4K8H2uua1r1nrMljAZryeS/SHTbmA
    <----8X----snip----8X----->
    9qTxB8ULbwP8UNP+KPgD4UfDnxfqa+AoPEVna+XB4g1GK5t7eS51BJDEIxDHCESyVJZbuK4e2iPj
    X/wb0/toftvf8FvLD9v/APbt+Jv7MHj/APYv0zxglzpPgTSda1a+vl8K6WkjaL
    READ Sep 17 12:47:46.285 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.socialogue.com -- port:993 -- socket:0x7f8d32e16d30 -- thread:0x7f8d345d7870
    pEmn6pps1j5VzP
    Hby6nbJMIZWvdUaLY0y1+/3/AAVz/Yh8Vf8ABRz/AIJ1ftMfsa+BfHHh/wCHXjfxfp+nSaPqurW8
    <----8X----snip----8X----->
    BYbWKS5uWhgh86QN+UH/AAXp/wCDfXUf+Cwfir4afGb4f/tIeH/gj8VvBng/VNBsNK1bwXa3lj4m
    maQ3FnFcanb+XqNrEJ
    READ Sep 17 12:47:46.301 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.socialogue.com -- port:993 -- socket:0x7f8d32e16d30 -- thread:0x7f8d345d7870
    mkVzJ9viiWUyW9rFI119s6DwD/AMG3PwJ8afAnxr8Ov+Cjf7W37X//AAUy
    +LWs+H7zQNO8bfEHxbeP/wAK2868W4N74ZtLme6/sq7f7Npomllmu/O+weWQttcXNpL4B/wSW/4N
    <----8X----snip----8X----->
    UUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
    UUUUUUUUUUUUUUUUUUUU)
    84.46 OK FETCH completed.
    WROTE Sep 17 12:47:46.322 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:imap.socialogue.com -- port:993 -- socket:0x7f8d32e16d30 -- thread:0x7f8d333741d0
    85.46 UID FETCH 7330 BODY.PEEK[2]<4126688.16384>
    READ Sep 17 12:47:46.412 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:mail.me.com -- port:993 -- socket:0x7f8d348b91a0 -- thread:0x7f8d377d87f0
    48.47 OK Completed
    WROTE Sep 17 12:47:46.434 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:mail.me.com -- port:993 -- socket:0x7f8d348b91a0 -- thread:0x7f8d345d7870
    49.47 IDLE
    READ Sep 17 12:47:46.579 [kCFStreamSocketSecurityLevelNegotiatedSSL]  -- host:mail.me.com -- port:993 -- socket:0x7f8d348b91a0 -- thread:0x7f8d345d7870
    + idling
    I just can't see enough to figure out if the problem is on my end or the FuseMail end. I have been looking around trying to figure out how to increase the debug level without much luck.
    I found this about the sqlite3 db but the Envelope file is not in the same place anymore:
    http://www.macworld.com/article/56673/2007/03/mailfix.html
    I also played around with the defaults but could not find anything specific to the connection/transfer/caching protocols:
    http://hints.macworld.com/article.php?story=2004101603285984
    I also tried the "Turn on Logging" Mail script:
    http://macs.about.com/od/usingyourmac/ss/Troubleshooting-Apple-Mail-Using-Apple- Mails-Troubleshooting-Tools_3.htm
    but if it is turning anything on in the Console, I can't see it.
    Any suggestons?

    I have the same problem, some photos are not loaded completely and partly grey. This occurs only in Mail.app but not in the web interface of the email provider. Did you find a solution, Florian? Does somebody else have a suggestion?
    Greetings from Finland

  • Error in attaching to container node - The code returned was 404

    I have a customer who has messed with their NTCWS and I'm trying to resurect it.
    I've been able to setup the correct Remote Server, Crawler Web Service (.NET CWS etc), Data Source - Remote (.NET CWS Data Source), Crawler and Job etc., but the job always fails.
    Here is the job log output:
    12/13/04 16:33:49- Starting to run operations (1 total) for job 'Neil Test NTCWS Job'. Will stop on errors. (PID=6248)12/13/04 16:33:50- *** Job Operation #1 of 1: Crawler 'Neil Test NTCWS Crawler' [Run as owner 'Neil Gidley']12/13/04 16:33:50- Starting Crawler "Neil Test NTCWS Crawler" at 12/13/2004 4:33:50 PM.12/13/04 16:33:50- Crawler starting from scratch: Neil Test NTCWS Crawler12/13/04 16:33:50- Error in attaching to container node Crawler Start Node to get child documents and containers: IDispatch error #19880 (0x80044fa8): [The SOAP Connection stopped executing method urn:plumtree-com:ContainerProvider.Initialize after 1 attempt(s).  Last error: The SOAP Connection has recieved an HTTP error while executing during connection attempt 1 of method urn:plumtree-com:ContainerProvider.Initialize!.  The code returned was 404.]12/13/04 16:33:50- Crawler has experienced a fatal error (Could not attach provider to start node, crawl cannot proceed.), shutting down.12/13/04 16:33:50- Bulk import completed, resulting in the successful storage of 0 new cards.12/13/04 16:33:50- Could not attach provider to start node, crawl cannot proceed.12/13/04 16:33:50- *** Job Operation #1 failed: Could not attach provider to start node, crawl cannot proceed. (0x4)12/13/04 16:33:50- Done with job operations.12/13/04 16:33:50- Could not attach provider to start node, crawl cannot proceed.
    Any ideas why I'd be receiving a 404 and causing the Job to Fail? The target crawl location is local to the portal itself - it is all installed on the same machine and the files we're trying to crawl are on the same machine.
    i've created a share with read/write etc access by Everyone. The Data Source - Remote is using my domain/name account which has Logon As Batch abilities etc...and should be able to crawl these files.

    My tcptrace says 'invalid hostname'.
    I assume that is the hostname of the target given in the Crawler object of where it is trying to attach and not the hostname of the Remote Server where the NTCWS code resides in the CWS Web Service.
    I've tried the following values:
    \\CESRVPP01.eugene1.net\Neil
    \\cesrvpp01\Neil
    \\10.10.34.41\Neil
    Here's the full tcpTrace output:
    POST /ntcws/ContainerProviderSoapBinding.asmx HTTP/1.1Host: ceppdportal:9999Cache-Control: no-cachePragma: no-cacheSOAPAction: "urn:plumtree-com:ContainerProvider.Initialize"Content-Type: text/xml; charset="UTF-8"User-Agent: Mozilla/4.0 (compatible; MSIE 6.0 compatible; Plumtree 4.0; Windows NT)Accept: */*Accept-Encoding: gzipConnection: Keep-AliveContent-Length: 000002692
    <?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <SOAP-ENV:Body > <Initialize xmlns="urn:plumtree-com:ContainerProvider"> <DataSourceInfo > <NamedValue xmlns="http://www.plumtree.com/xmlschemas/xui/"> <name >PTC_MAX_FILE</name> <value >50000000</value> </NamedValue> <NamedValue xmlns="http://www.plumtree.com/xmlschemas/xui/"> <name >PTC_SOAP_USE</name> <value >LOCAL</value> </NamedValue> <NamedValue xmlns="http://www.plumtree.com/xmlschemas/xui/"> <name >PTC_SOAP_OPEN</name> <value >URL</value> </NamedValue> <NamedValue xmlns="http://www.plumtree.com/xmlschemas/xui/"> <name >PTC_FILE_PASS</name> <value >PUilp4ElTOdKWHrhA09aGhkjQ==</value> </NamedValue> <NamedValue xmlns="http://www.plumtree.com/xmlschemas/xui/"> <name >PTC_PBAGFORMAT</name> <value >1000</value> </NamedValue> <NamedValue xmlns="http://www.plumtree.com/xmlschemas/xui/"> <name >PTC_GATEWAY</name> <value >0</value> </NamedValue> <NamedValue xmlns="http://www.plumtree.com/xmlschemas/xui/"> <name >CSP-SESSION-TOKEN</name> <value >2498|1103050835|4QWhsGW/5APMi1aPx7R9arhbOdI=</value> </NamedValue> <NamedValue xmlns="http://www.plumtree.com/xmlschemas/xui/"> <name >PTC_FILE_USER</name> <value >CEDOM100\cedxnpg</value> </NamedValue> </DataSourceInfo> <CrawlInfo > <NamedValue xmlns="http://www.plumtree.com/xmlschemas/xui/"> <name >PTC_CRAWL_DEPTH</name> <value >1</value> </NamedValue> <NamedValue xmlns="http://www.plumtree.com/xmlschemas/xui/"> <name >PTC_FOLDER_NAME</name> <value >Neil</value> </NamedValue> <NamedValue xmlns="http://www.plumtree.com/xmlschemas/xui/"> <name >PTC_CDLANG</name> <value >en</value> </NamedValue> <NamedValue xmlns="http://www.plumtree.com/xmlschemas/xui/"> <name >PTC_PBAGFORMAT</name> <value >3000</value> </NamedValue> <NamedValue xmlns="http://www.plumtree.com/xmlschemas/xui/"> <name >PTC_UNIQUE</name> <value >\\CESRVPP01.eugene1.net\Neil</value> </NamedValue> </CrawlInfo> </Initialize> </SOAP-ENV:Body></SOAP-ENV:Envelope>--------------------------HTTP/1.1 400 Bad RequestContent-Type: text/htmlDate: Tue, 14 Dec 2004 18:55:38 GMTConnection: closeContent-Length: 39
    <h1>Bad Request (Invalid Hostname)</h1>

  • Document/literal  WS w/ multipart attachment on OC4J 10.1.3/10.1.2

    Hi all,
    I am wondering if OC4J 10.1.3 or 10.1.2 can handle document/literal Web Service with multipart attachment using JAX-RPC API.
    I have created a prototype which does doc/lit WS with text/plain attachment without any problems on OC4J 10.1.3 DP 4.
    But, no luck with multipart/related attachment. Our messaging system is designed that the first part is the SOAP envelope.
    The second part is a multipart message, which could be nested.
    Page 19-9 of Oracle Application Server Web Services Developer's Guide 10g Release 3 (10.1.3) B14434-01 (Sep. 2005)
    does not have the multipart/* support for SWA attachment. It covers image/jpeg, image/gif, image/tif, text/plain, application/plain and text/xml.
    Does anyone know if multipart is supported? Can you provide a working example please?
    many thanks in advance !
    ---------WSDL ----------
    <?xml version="1.0" encoding="UTF-8"?>
    <definitions      xmlns="http://schemas.xmlsoap.org/wsdl/"           
              xmlns:ref="http://ws-i.org/profiles/basic/1.1/xsd"
              xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
              xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
              xmlns:xsd="http://www.w3.org/2001/XMLSchema"
              xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
              xmlns:tns="http://service.topdown/"
              name="bank"
              targetNamespace="http://service.topdown/">
         <types>
              <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                   xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/"
                   elementFormDefault="qualified"
                   targetNamespace="http://service.topdown/">
                   <xsd:import namespace="http://ws-i.org/profiles/basic/1.1/xsd"
                        schemaLocation="http://mypc.company.com/xml/ws-i-basic-profile-1.1.xsd" /> <!-- TEMPORARY LOCATION TO AVOID PROXY SETUP -->
                   <complexType name="createAccount">
                        <sequence>
                             <element name="acctName" nillable="true" type="string"/>
                             <element name="initBalance" type="float"/>
                        </sequence>
                   </complexType>
                   <complexType name="createAccountResponse">
                        <sequence>
                             <element name="result" nillable="true" type="string"/>
                        </sequence>
                   </complexType>
                   <complexType name="AccountException">
                        <sequence>
                             <element name="message" nillable="true" type="string"/>
                        </sequence>
                   </complexType>
                   <complexType name="deposit">
                        <sequence>
                             <element name="acctID" nillable="true" type="string"/>
                             <element name="amount" type="float"/>
                        </sequence>
                   </complexType>
                   <complexType name="depositResponse">
                        <sequence/>
                   </complexType>
                   <complexType name="getAccountID">
                        <sequence>
                             <element name="acctName" nillable="true" type="string"/>
                        </sequence>
                   </complexType>
                   <complexType name="getAccountIDResponse">
                        <sequence>
                             <element name="result" nillable="true" type="string"/>
                        </sequence>
                   </complexType>
                   <complexType name="getBalance">
                        <sequence>
                             <element name="acctID" nillable="true" type="string"/>
                             <element name="acctName" nillable="true" type="string"/>
                        </sequence>
                   </complexType>
                   <complexType name="getBalanceResponse">
                        <sequence>
                             <element name="result" type="float"/>
                        </sequence>
                   </complexType>
                   <complexType name="withdraw">
                        <sequence>
                             <element name="acctID" nillable="true" type="string"/>
                             <element name="amount" type="float"/>
                        </sequence>
                   </complexType>
                   <complexType name="withdrawResponse">
                        <sequence/>
                   </complexType>
         <!-- Added from attachment xsd -->               
                   <complexType name="ClaimDetailType">
                        <xsd:sequence>
                             <element name="Name" type="xsd:string"/>
                             <element name="ClaimForm" type="ref:swaRef"/>
                        </xsd:sequence>
                   </complexType>
                   <element name="claimDetailElement" type="tns:ClaimDetailType"/>
                   <element name="claimResponseElement" type="ref:swaRef"/>
         <!-- End of from attachment xsd -->               
                   <element name="createAccountElement" type="tns:createAccount"/>
                   <element name="createAccountResponseElement" type="tns:createAccountResponse"/>
                   <element name="AccountExceptionElement" type="tns:AccountException"/>
                   <element name="depositElement" type="tns:deposit"/>
                   <element name="depositResponseElement" type="tns:depositResponse"/>
                   <element name="getAccountIDElement" type="tns:getAccountID"/>
                   <element name="getAccountIDResponseElement" type="tns:getAccountIDResponse"/>
                   <element name="getBalanceElement" type="tns:getBalance"/>
                   <element name="getBalanceResponseElement" type="tns:getBalanceResponse"/>
                   <element name="withdrawElement" type="tns:withdraw"/>
                   <element name="withdrawResponseElement" type="tns:withdrawResponse"/>
              </schema>
         </types>
         <message name="BankService_depositResponse">
              <part name="parameters" element="tns:depositResponseElement"/>
         </message>
         <message name="BankService_deposit">
              <part name="parameters" element="tns:depositElement"/>
         </message>
         <message name="AccountException">
              <part name="AccountExceptionElement" element="tns:AccountExceptionElement"/>
         </message>
         <message name="BankService_createAccount">
              <part name="parameters" element="tns:createAccountElement"/>
         </message>
         <message name="BankService_withdrawResponse">
              <part name="parameters" element="tns:withdrawResponseElement"/>
         </message>
         <message name="BankService_createAccountResponse">
              <part name="parameters" element="tns:createAccountResponseElement"/>
         </message>
         <message name="BankService_getBalance">
              <part name="parameters" element="tns:getBalanceElement"/>
         </message>
         <message name="BankService_getAccountIDResponse">
              <part name="parameters" element="tns:getAccountIDResponseElement"/>
         </message>
         <message name="BankService_withdraw">
              <part name="parameters" element="tns:withdrawElement"/>
         </message>
         <message name="BankService_getAccountID">
              <part name="parameters" element="tns:getAccountIDElement"/>
         </message>
         <message name="BankService_getBalanceResponse">
              <part name="parameters" element="tns:getBalanceResponseElement"/>
         </message>
         <!-- Added from attachment xsd -->               
         <message name="ClaimIn">
              <part name="ClaimDetail" element="tns:claimDetailElement"/>
         </message>
         <message name="ClaimOut">
              <part name="ClaimRefNo" element="tns:claimResponseElement"/>
         </message>
         <!-- Added from attachment xsd -->               
         <portType name="BankService">
              <documentation>A service that provides banking operations for client applications.</documentation>
              <operation name="SendClaim">
                   <input message="tns:ClaimIn"/>
                   <output message="tns:ClaimOut"/>
              </operation>
              <operation name="createAccount">
                   <documentation>Creates a banking account.</documentation>
                   <input message="tns:BankService_createAccount"/>
                   <output message="tns:BankService_createAccountResponse"/>
                   <fault name="AccountException" message="tns:AccountException"/>
              </operation>
              <operation name="deposit">
                   <documentation>Performs a bank deposit.</documentation>
                   <input message="tns:BankService_deposit"/>
                   <output message="tns:BankService_depositResponse"/>
                   <fault name="AccountException" message="tns:AccountException"/>
              </operation>
              <operation name="getAccountID">
                   <documentation>Retrieves an account ID.</documentation>
                   <input message="tns:BankService_getAccountID"/>
                   <output message="tns:BankService_getAccountIDResponse"/>
                   <fault name="AccountException" message="tns:AccountException"/>
              </operation>
              <operation name="getBalance">
                   <documentation>Retrieves an account balance.</documentation>
                   <input message="tns:BankService_getBalance"/>
                   <output message="tns:BankService_getBalanceResponse"/>
                   <fault name="AccountException" message="tns:AccountException"/>
              </operation>
              <operation name="withdraw">
                   <documentation>Withdraws funds from a bank account.</documentation>
                   <input message="tns:BankService_withdraw"/>
                   <output message="tns:BankService_withdrawResponse"/>
                   <fault name="AccountException" message="tns:AccountException"/>
              </operation>
         </portType>
         <binding name="BankServicePortBinding" type="tns:BankService">
              <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
              <operation name="SendClaim">
                   <soap:operation soapAction="http://example.com/soapaction"/>
                   <input>
                        <mime:multipartRelated>
                             <mime:part>
                                  <soap:body use="literal" parts="ClaimDetail" namespace="http://example.com/mimetypes"/>
                             </mime:part>
                        </mime:multipartRelated>
                   </input>
                   <output>
                        <mime:multipartRelated>
                             <mime:part>
                                  <soap:body use="literal" namespace="http://example.com/mimetypes"/>
                             </mime:part>
                        </mime:multipartRelated>
                   </output>
              </operation>
              <operation name="createAccount">
                   <soap:operation soapAction="http://service.topdown/:createAccount"/>
                   <input>
                        <soap:body use="literal" parts="parameters"/>
                   </input>
                   <output>
                        <soap:body use="literal" parts="parameters"/>
                   </output>
                   <fault name="AccountException">
                        <soap:fault name="AccountException" use="literal" encodingStyle=""/>
                   </fault>
              </operation>
              <operation name="deposit">
                   <soap:operation soapAction="http://service.topdown/:deposit"/>
                   <input>
                        <soap:body use="literal" parts="parameters"/>
                   </input>
                   <output>
                        <soap:body use="literal" parts="parameters"/>
                   </output>
                   <fault name="AccountException">
                        <soap:fault name="AccountException" use="literal" encodingStyle=""/>
                   </fault>
              </operation>
              <operation name="getAccountID">
                   <soap:operation soapAction="http://service.topdown/:getAccountID"/>
                   <input>
                        <soap:body use="literal" parts="parameters"/>
                   </input>
                   <output>
                        <soap:body use="literal" parts="parameters"/>
                   </output>
                   <fault name="AccountException">
                        <soap:fault name="AccountException" use="literal" encodingStyle=""/>
                   </fault>
              </operation>
              <operation name="getBalance">
                   <soap:operation soapAction="http://service.topdown/:getBalance"/>
                   <input>
                        <soap:body use="literal" parts="parameters"/>
                   </input>
                   <output>
                        <soap:body use="literal" parts="parameters"/>
                   </output>
                   <fault name="AccountException">
                        <soap:fault name="AccountException" use="literal" encodingStyle=""/>
                   </fault>
              </operation>
              <operation name="withdraw">
                   <soap:operation soapAction="http://service.topdown/:withdraw"/>
                   <input>
                        <soap:body use="literal" parts="parameters"/>
                   </input>
                   <output>
                        <soap:body use="literal" parts="parameters"/>
                   </output>
                   <fault name="AccountException">
                        <soap:fault name="AccountException" use="literal" encodingStyle=""/>
                   </fault>
              </operation>
         </binding>
         <service name="bank">
              <port name="BankServicePort" binding="tns:BankServicePortBinding">
                   <soap:address location="http://localhost:8888/bank/bank"/>
              </port>
         </service>
    </definitions>

    Thank you, Tim for your reply.
    I found the answer myself. :-)
    It's not the WSDL, it's the test program.
    You are suggesting SWA attachment, which works. But, I am looking for SWAref attachment, which could be referenced by a SOAP element (i.e. cid: )
    The client application builds a multipart, which has 1 text file and a jpeg file and sends
    the multipart with SOAP envelope. The server returns the multipart back to the client.
    Here is my client code:
         private void demoAttachment() throws Exception
              javax.xml.soap.MessageFactory mf = javax.xml.soap.MessageFactory.newInstance();
              javax.xml.soap.SOAPMessage msg = mf.createMessage();
              javax.xml.soap.AttachmentPart ap = msg.createAttachmentPart();
              ap.addMimeHeader("header1", "12/28/2005");
    //          ap.setContent("Hello world !", "text/plain"); // text/plain worked earlier
              MimeMultipart mmp = makeAttachment();
              ap.setContent(mmp, mmp.getContentType());
              javax.xml.soap.AttachmentPart ret = m_endpoint.sendClaim("John Smith", ap);
    private static MimeMultipart makeAttachment()
    MimeMultipart mp = new MimeMultipart();
    try {
    mp.setSubType("related");
    } catch (MessagingException e1) {
    e1.printStackTrace();
    MimeBodyPart body1 = new MimeBodyPart();
    try {
    DataHandler dh = new DataHandler(new FileDataSource(TEXT_FILE_NAME));
    body1.setDataHandler(dh);
    String ct = dh.getContentType();
    System.out.println("Content type: " + ct);
    body1.setHeader("Content-Type", ct);
    body1.setFileName("test.txt");
    mp.addBodyPart(body1);
    } catch (MessagingException e) {
    e.printStackTrace();
    MimeBodyPart body2 = new MimeBodyPart();
    try {
    DataHandler dh = new DataHandler(new FileDataSource(IMG_FILE_NAME));
    body2.setDataHandler(dh);
    String ct = dh.getContentType();
    System.out.println("Content type: " + ct);
    body2.setHeader("Content-Type", ct);
    body2.setFileName("test.jpg");
    mp.addBodyPart(body2);
    } catch (MessagingException e) {
    e.printStackTrace();
    return mp;
    -------- SOAP request and response -----------------------------------------
    TcpTunnelText: ready to rock and roll on port 5555
    TcpTunnelText: tunnelling port 5555 to port 8888 on host foo.bar.com
    POST /topDownBank/topDownBank HTTP/1.1
    Host: localhost:5555
    Connection: Keep-Alive, TE
    TE: trailers, deflate, gzip, compress
    User-Agent: Oracle HTTPClient Version 10h
    SOAPAction: "http://example.com/soapaction"
    Accept-Encoding: gzip, x-gzip, compress, x-compress
    Content-type: multipart/related;type="text/xml";boundary="----=_Part_1_33320514.1135808579711"
    Content-length: 15957
    ------=_Part_1_33320514.1135808579711
    Content-Type: text/xml
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:ns0="http://service.topdown/"
         xmlns:ns1="http://ws-i.org/profiles/basic/1.1/xsd">
         <env:Body>
              <ns0:claimDetailElement>
                   <ns0:Name>John Smith</ns0:Name>
                   <ns0:ClaimForm>cid:ID1@ClaimForm</ns0:ClaimForm>
              </ns0:claimDetailElement>
         </env:Body>
    </env:Envelope>
    ------=_Part_1_33320514.1135808579711
    Content-Type: multipart/related;
         boundary="------=_Part_0_32113234.1135808579336"
    header1: 12/28/2005
    Content-Id: <ID1@ClaimForm>
    ------=_Part_0_32113234.1135808579336
    Content-Type: text/plain; name=test.txt
    Content-Disposition: attachment; filename=test.txt
    Volume in drive C has no label.
    Volume Serial Number is DCD8-0D94
    Directory of C:\temp
    12/22/2005 03:57 PM <DIR> .
    12/22/2005 03:57 PM <DIR> ..
    03/04/2005 02:28 PM <DIR> 0128
    05/09/2005 09:10 PM 703 XMSTest1.java
    58 File(s) 237,395,939 bytes
    31 Dir(s) 49,375,744,000 bytes free
    ------=_Part_0_32113234.1135808579336
    Content-Type: image/jpeg; name=test.jpg
    Content-Disposition: attachment; filename=test.jpg
    (binary data removed from here ...)
    ------=_Part_0_32113234.1135808579336--
    ------=_Part_1_33320514.1135808579711--
    HTTP/1.1 200 OK
    Date: Wed, 28 Dec 2005 22:22:59 GMT
    Server: Oracle Containers for J2EE
    Content-Length: 15922
    Connection: Keep-Alive
    Keep-Alive: timeout=15, max=100
    Content-Type: multipart/related;type="text/xml";boundary="----=_Part_8_13238995.1135808579852"
    SOAPAction: ""
    ------=_Part_8_13238995.1135808579852
    Content-Type: text/xml
    <?xml version="1.0" encoding="UTF-8" ?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
         xmlns:xsd="http://www.w3.org/2001/XMLSchema"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:ns0="http://service.topdown/"
         xmlns:ns1="http://ws-i.org/profiles/basic/1.1/xsd">
         <env:Body>
         <ns0:claimResponseElement>cid:ID1@claimResponseElement</ns0:claimResponseElement>
         </env:Body>
    </env:Envelope>
    ------=_Part_8_13238995.1135808579852
    Content-Type: multipart/related;
         boundary="------=_Part_0_32113234.1135808579336"
    header1: 12/28/2005
    Content-Id: <ID1@claimResponseElement>
    ------=_Part_0_32113234.1135808579336
    Content-Type: text/plain; name=test.txt
    Content-Disposition: attachment; filename=test.txt
    Volume in drive C has no label.
    Volume Serial Number is DCD8-0D94
    Directory of C:\temp
    12/22/2005 03:57 PM <DIR> .
    12/22/2005 03:57 PM <DIR> ..
    03/04/2005 02:28 PM <DIR> 0128
    10/17/2005 03:54 PM 11,181,568 04_Tutorial_XMS_Webservices.doc
    05/09/2005 09:10 PM 703 XMSTest1.java
    58 File(s) 237,395,939 bytes
    31 Dir(s) 49,375,744,000 bytes free
    ------=_Part_0_32113234.1135808579336
    Content-Type: image/jpeg; name=test.jpg
    Content-Disposition: attachment; filename=test.jpg
    (binary data removed from here )
    ------=_Part_0_32113234.1135808579336--
    ------=_Part_8_13238995.1135808579852--
    Message was edited by:
    user457369

  • No reference found in element, incorrect attachment reference

    Hi All,
    I am getting this error. While invoking a webservice.
    That web service require me to send using SOAP with Attachments .
    the element is declared like this in wsdl
    <xsd:element name="doc" nillable="true" type="xsd:base64Binary"/>
    I am using
    <from expression="bpws:getVariableData('ReadPriceFeed_Read_InputVariable','AmazonEnvelope')"/>
    <to variable="InvokeAmazon_postDocument_InputVariable" part="doc" query="/ns3:doc"/>
    this command to assin data.
    but getting No reference found in element, incorrect attachment reference error.
    Please help me.
    Thanks,
    Varun
    [2006/09/14 19:10:33] "{http://schemas.oracle.com/bpel/extension}remoteFault" has been thrown. less
    <remoteFault>
    <part name="code" >
    <code>Server</code>
    </part>
    <part name="summary" >
    <summary>when invoking endpointAddress 'http://merchant-api-qa.amazon.com:80/gateway/merchant-interface-mime', No reference found in element, incorrect attachment reference</summary>
    </part>
    <part name="detail" >
    <detail>AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server faultSubcode: faultString: No reference found in element, incorrect attachment reference faultActor: faultNode: faultDetail: {WASP_ExceptionNs}ExceptionTypeName:WASP_DeserializationException {WASP_ExceptionNs}ExceptionMessage:No reference found in element, incorrect attachment reference {WASP_ExceptionNs}ExceptionStackTrace: thrown in 'bool WASP_MessageAttachmentResolver::resolve(WASP_XMLTokenizer *, WASP_String *, WASP_String *&amp;, WASP_String *&amp;, WASP_String *&amp;, WASP_String *&amp;, WASP_DeserializationContext *, WASP_ExceptionEnv *)' at serialization/helpers/MessageAttachmentHelpers.cpp:119 caught in 'void WASP_DeserializationContextImpl::deserialize(void *, void (*)(void *, void *), WASP_XMLTokenizer *, WASP_String *, WASP_String *, WASP_String *, WASP_String *, bool, WASP_ExceptionEnv *)' at serialization/DeserializationContextImpl.cpp:573 rethrown in 'void WASP_DeserializationContextImpl::deserialize(void *, void (*)(void *, void *), WASP_XMLTokenizer *, WASP_String *, WASP_String *, WASP_String *, WASP_String *, bool, WASP_ExceptionEnv *)' at serialization/DeserializationContextImpl.cpp:573 caught in 'void MIME::_WASP_MerchantInterfaceInstanceMethods::postDocument(MIME::MerchantInterfaceImpl *, WASP_MessageAttachmentManager *, WASP_DeserializationContext *, WASP_SerializationContext *)' at /opt/brazil-pkg-cache/packages/MerchantGatewayServer/MerchantGatewayServer-1.1.14.8/X86_LINUX_GCC2_GLIBC22/src/waspcServer/merchantInterfaceMIMEImpl.cpp:1161 thrown in 'static void MIME::_WASP_MerchantInterfaceInstanceMethods::_WASP_postDocumentCallback(WASP_CallContext *, void *, WASP_Exception *, WASP_ExceptionEnv *)' at /opt/brazil-pkg-cache/packages/MerchantGatewayServer/MerchantGatewayServer-1.1.14.8/X86_LINUX_GCC2_GLIBC22/src/waspcServer/merchantInterfaceMIMEImpl.cpp:1179 caught in 'void WASP_CallContext::callResponseCallbacks(WASP_Exception *)' at runtime/CallContext.cpp:184 </detail>
    </part>
    </remoteFault>

    Hello,
    have you found any solution for this problem?
    Ich have the very same problem and i can't resolve it the last 3 days an i'am hopeless.
    Many thx.

  • Envelopes do not print properly using an All-in-One Photosmart C410a and C310a

    My HP C410a is USB attached. Serial
    Using Windows 7, SP2 (Home Premium - desktop); and Windows XP (laptop)
    Using Word 2010 (WIN7) and Word 2007 (WIN/XP)
    The printer has latest drivers:  PS_AIO_07_C410_FSW_Full_Win_enu_140_222.exe
    April 1, 2010
    It prints normal pages OK, e.g.: there are no anomalies.
    But, when I print an envelope from Word 2010 it does not print on the envelope as expected (a No. 10 envelope), but rather the printer IGNORES the formatting in Word and prints the address as if the envelope in the printer is an 8-1/2”x11” page, in landscape mode (the only correct action).
    I have uninstalled and deleted the driver multiple times.
    Yes, I last did the uninstall Sunday June 12, 2011; followed by a fresh install.
    Yes, I printed an envelope after the fresh install and it printed properly.
    Today, the anomaly (the address prints in the wrong location, e.g.: middle of an 8-1/2”x11” page) has recurred.
    Between Sunday and today, I did not make any changes in my system, e.g.: no Windows, Office, etc. updates.  And, I did not change any of the envelope formatting or print options in Word 2010.
    This is NOT a physical problem, rollers, print head, etc. as the printer is barely one month old --- and do note that the envelope (actually multiple) printed properly the other day - Sunday.
    This is not the first time that this has occurred.  Yes, on previous occasions I uninstalled and installed the drivers.
    AND, more importantly, I have a laptop that uses the same printer, same driver, and Word 2007.  It too now prints the envelope address incorrectly, e.g.: as if it is an 8-1/2”x11” page.
    Hence, there is something inherently bad, wrong, defective, etc. inside the printer itself.
    Before sending me on an Easter egg hunt, do notel:
    Restarting, e.g.; power off /on /off / on does not work or fix the issue.
    Uninstalling drivers and reinstalling drivers does not work, as explained.
    Switching PC’s, as explained does not work.
    Using different software suites, e.g.: Word 2007 (Windows XP – Professional) and Word 2010 does not work.
    There are NO new updates from HP per the HP Solution Center.
    What is HP’s solution?

    This is not a problem with the printer - Word 2010 has it's own way of printing envelopes and labels that you must follow regardless of the printer. I have included some screenshots below to guide you along - I hope you find this helpful. The 3rd pic has the important areas marked with red rectangles - those are different from the defaults that Word ALWAYS seems to present at least on my system. With the following procedure, load the envelope as instruction in the HP Solution Center How-Do-I... videos (search for envelope - it should be among the first few articles you are presented in the search results).
    Regards,
    Himanshu

  • How to attach XML file in the response of Web Services

    Hi
    I am new to the WEB SERVICE. this my requirement.
    I need to make a class file a web service. and i need to get data from the data base and attach it in the response. I need to use SOAP MEssaging for this. so how to call the service from the JSP and how to get the data from the response,Before that which technology i need to use for this requirement. Plz let me know how to accomplish this task. I have gone thur lot of tech stuff and i am confused a lot, what to use and how to use. Will any one help me out.
    Thanks
    Vidya

    Hey VP, thanks for replyng.
    I have read the codes from a book and havesome code for client. The server side is yet to be done....but I have problems in compiling them as I am Unable to import javax.xml.soap.*;
    This is basically a request to the Server asking it to find the match of the word "Mickey" from the XMLfile at the server...JAXRPC is involved(I Presume:) There are some supporting files.........hey But it doesn't compile only here. Hope it does in yrs
    *******The client..........**********
    * Client
    package com.aby.jwsdp.soap.client;//the package
    import javax.xml.messaging.URLEndpoint;
    import javax.xml.soap.SOAPConnectionFactory;
    import javax.xml.soap.SOAPConnection;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.Source;
    import javax.xml.transform.stream.StreamResult;
    import com.aby.jwsdp.soap.client.Fault;//supporting file
    import com.aby.jwsdp.soap.client.RequestMessage;//supporting file
    public class Client {
         static final string SERVICE_ENDPOINT="http://localhost:8080/chap/servlet/chap.RecieveServlet";
         public static void main(String args[]) {
              if(1!=args.length) {
                   System.err.println("Usage: java "+"com.aby.jwsdp.soap.client.Client <name>");
              } else {
                   new Client(args[0]);
         public Client(String name) {
              try{
                   URLEndpoint endpoint = new URLEndpoint(SERVICE_ENDPOINT);
                   SOAPConnectionFactory scf=SOAPConnectionFactory.newInstance();
                   SOAPConnection connection = scf.createConnection();
                   RequestMessage reqMsg = new RequestMessage();
                   reqMsg.setName(name);
                   SOAPMessage replySOAP = connection.call(reqMsq.getMessage(),endpoint);
                   if(Fault.hasFault(replySOAP)) {
                        Fault fault = new Fault(replySOAP);
                        System.err.println("Recieved SOAP Fault");
                        System.err.println("Fault Code: "+fault.getFaultCode());
                        System.err.println("Fault string: "+fault.getFaultString());
                        System.err.println("Fault detail: "+fault.getFaultDetail());
                   }else {
                        ResponseMessage respMsg = new ResponseMessage(replySOAP);
                        String responseValue = null;
                        try{
                             responseValue = respMsg.getValue();
                             System.out.println("Response: "+responseValue);
                        }catch(SchemaException e) {
                             System.err.println("Parsing error");
                   connection.close();
              }catch(EXception e) {
                   System.err.println(e/toString());
    /*@author Aby
    *Fault.java
    package com.aby.jwsdp.soap.client;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPFault;
    import javax.xml.soap.SOAPException;
    import javax.xml.soap.Detail;
    import javax.xml.soap.DetailEntry;
    import java.util.Iterator;
    public class Fault {
         protected SOAPFault soapFault;
         public Fault(SOAPMessage msg) throws SOAPException {
              SOAPPart soapPart = msg.getSOAPPart();
              SOAPEnvelope envelope = soapPart.getEnvelope();
              SOAPBody soapBody = envelope.getBody();
              soapFault = soapBody.getFault();
         public static boolean hasFault(SOAPMessage msg) throws SOAPException {
              SOAPPart soapPart = msg.getSOAPPart();
              SOAPEnvelope envelop = soapPart.getEnvelop();
              SOAPBody soapBody = envelop.getBody();
              return soapBody.hasFault();
         public String getFault() {
              return soapFault.getFaultCode();
         public String getFaultString() {
              return soapFault.getFaultString();
         public String getFaultDetail() {
              String ret = null;
              Detail detail = soapFault.getDetail();
              if(null!=detail) {
                   Iterator it = detail.getDetailEntries();
                   if(it.hasNext()) {
                        DetailEntry detEntry = (DetailEntry)it.next();
                   ret = detEntry.getValue();
              return ret;
    * RequestMessage.java
    package com.aby.jwsdp.soap.client;
    import com.aby.jwsdp.soap.client.Client;
    import javax.xml.soap.MessageFactory;
    import javax.xml.soap.SOAPMessage;
    import javax.xml.soap.SOAPPart;
    import javax.xml.soap.SOAPEnvelope;
    import javax.xml.soap.SOAPBody;
    import javax.xml.soap.SOAPElement;
    import javax.xml.soap.SOAPException;
    public class RequestMessage {
         protected SOAPMessage soapMessage = null;
         public RequestMessage()
         throws SOAPException {
              MessageFactory mf = MessageFactory.newInstance();
              soapMessage = mf.createMessage();
         public void setName(String name)
         throws SOAPException {
              SOAPPart soapPart = soapMessage.getSOAPPart();
              SOAPEnvelope envelope = soapPart.getEnvelope();
              SOAPBody body = envelope.getBody();
              SOAPElement requestElement;
              requestElement = body.addChildElement(envelope.createName("GetValueByName","myns","www.syngress.com/JWSDP/soap-example"));
              SOAPElement paramElement;
              paramElement = requestElement.addChildElement("name");
              paramElement.addTextNode(name);
         public SOAPMessage getMessage() {
              return soapMessage;
    check this out then we will see

  • Setting the attachment name in web service call scheduleReport

    Hi there,
    I searched the forum for this, found lots of threads but no useful solution...
    I am using BI Publisher 10.1.3.4.1 and I need to send a PDF report by email using its web service functionality. This works fine but the report is attached as "attachment.pdf" which is far from ideal. Is it possible to specify what the attachment should be called (e.g. "veryimportantreport.pdf")
    See below an example of the web service call I am doing.
    Thanks
    Luis
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
          xmlns:pub="http://xmlns.oracle.com/oxp/service/v11/PublicReportService"
          xmlns:pub1="http://xmlns.oracle.com/oxp/service/PublicReportService">
       <soapenv:Header/>
       <soapenv:Body>
          <pub:scheduleReport>
             <pub:scheduleRequest>
                <pub:cronExpression></pub:cronExpression>
                <pub:deliveryRequest>
                   <pub:contentType>pdf</pub:contentType>
                   <pub:documentData></pub:documentData>
                   <pub:emailOption>
                      <pub:emailBody>Message body</pub:emailBody>
                      <pub:emailFrom>[email protected]</pub:emailFrom>
                      <pub:emailReplyTo>[email protected]</pub:emailReplyTo>
                      <pub:emailServerName>emailserver</pub:emailServerName>
                      <pub:emailSubject>Subject</pub:emailSubject>
                      <pub:emailTo>[email protected]</pub:emailTo>
                   </pub:emailOption>
                </pub:deliveryRequest>
                <pub:reportRequest>
                   <pub:reportAbsolutePath>/Order/Order.xdo</pub:reportAbsolutePath>
                   <pub:attributeFormat>pdf</pub:attributeFormat>
                   <pub:parameterNameValues>
                      <pub:item>
                         <pub:name>P_ORDER_ID</pub:name>
                         <multiValuesAllowed>false</multiValuesAllowed>
                         <pub:values>
                            <pub1:item>123</pub1:item>
                         </pub:values>
                      </pub:item>
                   </pub:parameterNameValues>
                </pub:reportRequest>
             </pub:scheduleRequest>
             <pub:userID>luis</pub:userID>
             <pub:password>luis</pub:password>
          </pub:scheduleReport>
       </soapenv:Body>
    </soapenv:Envelope>

    mdonohue wrote:
    Sorry, product currently does not provide a way to name the attachment. I have entered an enhancement request to get that into a future release.That is a bit disappointing but thanks for letting me know!
    We are using BIP to generate reports from Apex and it works very well, except for this small detail.
    By the way, you sound very sure; are you related to Oracle in any way (I mean, is this an "official" answer)? I can't tell from your profile...
    Cheers
    Luis

Maybe you are looking for

  • Field value in function module BAPI_SALESORDER_GETSTATUS

    Hi Ppl, I am using FM BAPI_SALESORDER_GETSTATUS and for each line item a value of "B" is returned in DLV_STAT_H field, can somebody tell me where where to find the meaning of these values? Thanks Rob

  • Per VLAN traffic shaping on ME3400

    Customer side Metro 3400 switch: Port is 100Mb, Vlan 80 is 80MbCIR, Vlan81 is 10MbCIR want to shape each vlan down to CIR what is best configuration to do this? Here is what I tried... class-map match-all vlan81 match vlan 81 class-map match-all vlan

  • Can't hear music with out headphones

    Any suggestions

  • Spilled soda on macbook, stopped working and now working again?

    So a couple months ago I spilled orange soda on my Macbook air. Its the late 2011 I think. It stopped working completely and the batteries were ruined. I took it to geek squad and when they tried to boot it, it said it could not find start up disk. T

  • IMovie '06 with iLife '08-Will it work?

    I recently purchased iLife '08. When i installed it, it warned me that my hardware was inadequate for running the new version of iMovie. It installed everything else, but left my old iMovie alone. Does anyone know if I will still be able to put toget