SOAPFault from Integration Server because of attachment name

Hello everyone,
I'm currently building the attachment function into our adapter for IBM Lotus Notes and SAP XI.
In the Sender part, the adapter must add the attachment from Lotus Notes to the XI Message as a payload.
The following source code show how to do this:
/Create a payload from a XI Message/
Payload attachment = xiMessage.createPayLoad();
/Set the attachment name with the file name of the Notes attachment/
/I have problem with this method/
attachment.setName(notesAttachment.getFileName());
/Set the content (byte array) of the attachment/
attachment.setContent(notesAttachment.getBytesContents());
This works well unless no special file name like ("Ättachment") is entered in the method Payload.setName().
Errors will be shown in the Audit Log:
1. SOAPFault received from Integration Server. ErrorCode/Category: XIProtocol/SAP_CODEPAGE_CONVERSION_ERROR; Params:  ; AdditionalText:  ; ApplicationFaultMessage:  ; ErrorStack: Error when converting the code page for character set UTF-8 (code page 4110): Cannot convert character sets for one or more characters.
2. Transmitting the message to endpoint http://kit-was:8000/sap/xi/engine?type=entry using connection AFW failed, due to: com.sap.aii.af.ra.ms.api.RecoverableException: Received HTTP response code 500 : Error during creation of multipart mime object.
and in the Logviewer:
1. enrichMessageData(): Error during retrieving the end-to-end-monitoring information
Thrown:com.sap.aii.rwb.endtoendmonitoring.util.Sxmb_Get_Pmi_Info_Fault_Exception:      at sun.reflect.GeneratedConstructorAccessor553.newInstance(Unknown Source)     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)     at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
But in the "Message content --> SOAP Document", the attachment name can be showed correctly:
- <sap:Payload xlink:type="simple" xlink:href="cid:[email protected]">
  <sap:Name>Ättachment</sap:Name>
  <sap:Description>üüüäää</sap:Description>
  <sap:Type>ApplicationAttachment</sap:Type>
  </sap:Payload>
I've no idea, what should I do. Apparently I did every correctly, but why SAP Integration Server didn't work?
The ABAP stack of the XI server should also support Unicode. Our XI server is 04 SP 19.
Please give me some help.
with regards
Xiang

Hi Stefan,
thanks for your reply.
The problem is that String is unicode in Java. The method from SAP is
void setName(java.lang.String name) .
In Java it is only necessary to define charset when create a string based on a bytes array.
String(byte[] bytes, String charsetName)
          Constructs a new String by decoding the specified array of bytes using the specified charset.
I got the file name from Lotus Notes as a String and just gave it to the SAP method. Then the Integration Server gave an error message about the name.
Regards
Xiang

Similar Messages

  • SOAPFault received from Integration Server. ErrorCode/Category: XIServer/IN

    Hello All,
    I work on PI 7.1 and needed to create an interface using a simple File-to-File scenario. I created this without using any IR/ESR Objects as per a technical article on the website saptechnical dot com /Tutorials/XI/File2File/Demo1.htm
    This worked perfectly fine in my dev environment. However, when I moved it to Test environment, I am having issues. Error message shown in RWB for Adapter engine is
    SOAPFault received from Integration Server. ErrorCode/Category: XIServer/INBOUND_BINDING_ERROR; Params: BS_ECC100, http://abc, ecc-to-external; AdditionalText: null; ApplicationFaultMessage: null; ErrorStack: Error in sender agreement for party , service BS_ECC100, interface namespace http://abc interface ecc-to-external  No sender agreement found for , , , , , 
    Error Transmitting the message to endpoint http://piq.uk.rweutil.net/sap/xi/engine?type=entry using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Error during Sender Agreement Determination.
    I checked the Sender agreement. It seems fine. All other components are also active, however I do not see the sender agreement  in SXI_CACHE transaction. Any clues what could be wrong ?
    Many thanks in advance .
    Regards
    Rajiv

    Hi Rajiv,
    Please perform below tasks
    1. Logon Integration Directory
    2. Click on 'Modification' icon, put a 'dummy' change (may a space) in the description field
    3. Save the change
    4. Active the changed objects
    5. Repeat 2, 3, 4 steps for all those objects you moved to Test environment.
    All the above steps, eventually leads to have forceble cache refresh, if this won't helps resolve, Please perform full CPACache refresh using below URl
    http://<host name>:<http port>/CPACache/refresh?mode=full
    I presume these instructions will help to resolve the issue.
    Regards
    Sekhar

  • SOAPFault received from Integration Server. ErrorCode/Category: XIServer/INBOUND_BINDING_ERROR

    Hi Experts,
    we are testing file to RFC scenario. file adapter picked the file but not moving to Integration engine.we are getting below error someone can help us to resolve the issue. already we tested same one in development there it was works fine. but we are facing this problem in Quality.
    we have done below checks also..
    1. cache refresh (ESR, ID, Delta and full cache)
    2.tested configurations in ID its working fine.
    3. checked SXMB_ADM and and pipeline url and business systems in SLD. everything is fine.
    4. when i checked in messaging system there i find something error like.
    Transmitting the message to endpoint http://...sap/xi/engine?type=entry using connection File_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Error during Sender Agreement Determination
    SOAPFault received from Integration Server. ErrorCode/Category: XIServer/INBOUND_BINDING_ERROR; Params: BC_xxxx, http://xxx//xxxx,; AdditionalText: null; ApplicationFaultMessage: null; ErrorStack: Error in sender agreement for party , service BC_xxxx, interface namespace http://xxx//xx, interface xxxx
    No sender agreement found for , , , ,
    can someone help us....
    Regards,
    vengal.

    Hi Vengal,
    The error is only in one FTP scenario or all FTP scenario? Please check the below discussion
    SOAPFault received from Integration Server. ErrorCode/Category: XIServer/IN
    regards,
    Harish

  • How to resolve timezone issue from integrator server

    Hi All,
    For the timezone issue where the midnight time shows differently than other times in studio(timezone issue: midnight time i.e. time with 00:00:00 gets added with 1 extra hour as compared to other rows time .suppose we have 2 rows 1 of them has time as 1st april 9am and 2nd row 2nd april 00:00:00 then in studio 1 row can be seen as 1st april 11am and 2nd one will be 2nd april 3 am.extra 1 hour is added for midnight row) ,I applied the timezone fix of run configuration(Added the argument "-Duser.timezone=UTC" in: Run > Run Configurations > launch-config > Arguments tab > VM arguments) in integrator and it worked fine.
    While running the graphs form clover server I am seeing timezone issue.Does anyone have any idea on how should the timezone issue be fixed if we plan to run the graphs from clover server.
    Thank you so much.
    Regards,
    Amrit

    Amrit,
    See http://docs.oracle.com/cd/E35976_01/integrator.240/eid_integrator_users/toc.htm#Setting%20a%20default%20time%20zone%20for%20incoming%20data for additional options to address the time zone conversion.
    RLJII

  • Migrating from Sql Server tables with column name starting with integer

    hi,
    i'm trying to migrate a database from sqlserver but there are a lot of tables with column names starting with integer ex: *8420_SubsStatusPolicy*
    i want to make an offline migration so when i create the scripts these column are created with the same name.
    can we create rules, so when a column like this is going to be migrated, to append a character in front of it?
    when i use Copy to Oracle option it renames it by default to A8420_SubsStatusPolicy
    Edited by: user8999602 on Apr 20, 2012 1:05 PM

    Hi,
    Oracle doesn't allow object names to start with an integer. I'll check to see what happens during a migration about changing names as I haven't come across this before.
    Regards,
    Mike

  • Problem: Original Attachment Name from SOAP Sender changes to attachment-1

    Hi everybody,
    we have a scenario where a SOAP sender receives a xml message describing several documents. Each document has a mime type and a file name, size, md5 checksums etc as attributes.
    The documents are send as attachments with the same Web service in SWA(SOAP with attachment style).
    The web service calls an ABAP proxy provider class in a R/3 backend.
    The ABAP proxy class will save the attached documents for further processing and must use the original document names.
    At the soap communication channel monitoring(Java Stack) we still see the original attachment names in the message content tab.
    At the Integration Server(sxmb_moni) the attachment name changes to attachment-1, attachment-2 and so on.
    Using the method
    IF_AI_ATTACHMENT ->GET_DOCUMENT_NAME
      in the provider ABAP proxy class returns the name attachment-1.
    We can see that there is a mapping of the new attachment-1 name to the old, original name in the manifest section of this message on the Integration server.
    Is there a way to access the manifest section at a provider ABAP proxy class?  Or otherwise a PI configuration setting to preserve the original attachment names.
    Thanks a lot,
    Heiko
    => PI 7.1 SP9

    Hi Stefan,
    (I was hoping you would find that thread ...)
    I see a good reason why the attachment names are changed as the PI message protocol sends the main document as an attachment as well. So no problem with that because the information of the mapping old to new names still exists in the manifest part and is visible at the sxmb_moni.
    We see a manifest part like this (Sorry cant post the whole xml doc as the formatting for longer messages isn't working in the forum)
    <SAP:Payload xlink:href="cid:4cc43edd-839f-423f-b7c6-7e44294d663a_sig.p7m">
      <SAP:Name>attachment-1</SAP:Name>
      <SAP:Description>attachment</SAP:Description>
      <SAP:Type>ApplicationAttachment</SAP:Type>
    </SAP:Payload>
    The (red) cid entry is the original file name. This manifest is from the sxmb_moni in the r/3 backend. So all the information is there..  The question is how to retrieve this information .. Any idea?
    Best Regards,
    Heiko Bergmann

  • BPM Acknowledgement message reading the wrong integration server name

    HI
    I have a scenario where I have BPM which sends data to A MS SQL Server database and waits for a TRANSPORT Acknowledgement. The Mesage going to the Database is processed successfully but the acknowledgement messasge fails giving the following error when viewed in the message monitor.
    IS_DETAILS_GET_ERROR
    no_integration_server_found: Unable to find Integration Server is.XX.XXXXXXXX
    Error while reading access data (URL, user, password) of Integration Server is.XX.XXXXXXXX
    Actually the string "is.XX.XXXXXXXX" contains the name of the integration server.
    Now my problem is the actual  value contained in the above string is the name   of the integration server . But this name is not correct ,  I mean it is not what the actual name should be. We are not able to find out from where this incorrect name is being picked up. Can anyone tell from where the actaul name and url  of the integration server is read. Is it stored in different locations for inbound messages and acknowledgement msgs. Will refreshing any of the caches will help.
    Please suggest.
    regards
    Nilesh Taunk.

    Hi Nilesh,
    your problem is very strange because your BPM is sending data correctly to SQL DB .....your db is processed.....but the ack msg when coming in bpm gives IS_DETAILS_GET_ERROR.
    i think just see all the objects in IR and ID are activated.....after that by SXI_CACHE transaction do a cache refresh.........see the return code of BPM is zero or not......the retun code of BPM shuld be zero.......
    again run your this scenario.......now please tell what happens......
    Thanks,
    Rajeev Gupta

  • Error using WSPUBLISH in PI 7.1  - No Publication possible from Integration

    Hi
    When we use WSPUBLISH in 7.1 we get the the error "No Publication possible from Integration Server(IS)." Message no. MSG_CL_ER041
    We found the code tests to see in the ENGINE_TYPE is not HUB - this setting is set in
    SXMB_ADM -> Integration Engine config - Runtime - ENGINE_TYPE - Is currently set to HUB
    However you cannot set ENGINE_TYPE to LOC because this is the integration server and setting it as LOC creates issues - for example the cache refresh starts creating problems
    How do you guys publish webservices from you PI box? Unfortunatly we have found all the documentation to be related to CE
    Thanks
    Henry

    Hello,
    To publish a service from XI bos to the SR, you would need to publish the Sender Agreement to the Service Registry.
    In your sender agreement you will find a option publish to SR.
    Only Outbound XI interfaces ; aka, XI interfaces exposed as a webservice can be published into the SR from XI.
    In case of inbound interfaces, where the Service implementation is written in a aback end system ( either ABAP based or Java Based ) ; the publishing of the same has to be done from the back end system.
    Regards
    Bhavesh

  • "To Be Delivered" status in XI integration server

    Hey Guys!
    I have a question, right now we are trying to load Items into SRM; however, the records are being given the “To Be Delivered” status in the XI Integration Server. The records do not reach SRM. We have tried refreshing the XI Cache, as well as restarting the J2EE engine, all to no avail. Would anyone of you guys know how to address this issue? Thanks in advance!!
    Best Regards,
    Glenn

    Hi,
    Status:  TO_BE_DELIVERED
    Which means that the message was successfully delivered from Integration Server point of view and it states that the messages is initially handed over to the Messaging System.
    TO_BE_DELIVERED occurs while the message is put into the Messaging System receive queue.
    Solution:
    This is done via the Messaging System receive servlet:
    http://<Host>:<PORT>/MessagingSystem/receive/<CONNECTION>
    /<PROTOCOL>
    Only if this was executed successfully the Messaging System returns HTTP 200 to the Integration Server and the Status TO_BE_DELIVERED moves to DELIVERING
    1. Try logging into Sap GUI with two users:  XIAPPLUSER & XIAFUSER
       to see if they are blocked
    2. We can check the messages:
    AdapterFramework
    com.sap.aii.adapterframework.serviceuser.language
    com.sap.aii.adapterframework.serviceuser.name = XIAFUSER
    com.sap.aii.adapterframework.serviceuser.pwd
    ApplicationSystem
    com.sap.aii.applicationsystem.serviceuser.language
    com.sap.aii.applicationsystem.serviceuser.name = XIAPPLUSER
    com.sap.aii.applicationsystem.serviceuser.pwd
    in the exchange profile to make sure the right passwords
    Regards
    Agasthuri Doss

  • Pick mails based on attachment name

    Hi experts,
    How to pick a mail from the mail server based on attachment name using pop3 portocol?
    Regards
    Sowmya

    Hi Sowmya,
    I asume you use microsoft exchange server?
    In this case I would not to this request in XI.
    It is possible to write macros for MS exchange.
    The macro could read the mails. If the mail matches the request the macro cut paste the mail to a dedicated mail-folder.
    XI only polls on this dedicated folder. so it is guaranteed that XI just processes messages that should be processed.
    Regards Mario

  • File from application server

    Hi Guys,
    I want to pick file from application server as an attachment and send as mail.
    Thanks

    *This program will allowed you to send email with attachment.
    First, specify the attachment file from your local hardisk and execute.
    Next, specify the sender email address and click the send button.
    report z_mail.
    data method1 like sy-ucomm.
    data g_user like soudnamei1.
    data g_user_data like soudatai1.
    data g_owner like soud-usrnam.
    data g_receipients like soos1 occurs 0 with header line.
    data g_document like sood4 .
    data g_header like sood2.
    data g_folmam like sofm2.
    data g_objcnt like soli occurs 0 with header line.
    data g_objhead like soli occurs 0 with header line.
    data g_objpara like selc occurs 0 with header line.
    data g_objparb like soop1 occurs 0 with header line.
    data g_attachments like sood5 occurs 0 with header line.
    data g_references like soxrl occurs 0 with header line.
    data g_authority like sofa-usracc.
    data g_ref_document like sood4.
    data g_new_parent like soodk.
    data: begin of g_files occurs 10 ,
    text(4096) type c,
    end of g_files.
    data : fold_number(12) type c,
    fold_yr(2) type c,
    fold_type(3) type c.
    parameters ws_file(4096) type c default 'c:\debugger.txt'.
    Can me any file fromyour pc ....either xls or word or ppt etc ...
    g_user-sapname = sy-uname.
    call function 'SO_USER_READ_API1'
    exporting
    user = g_user
    PREPARE_FOR_FOLDER_ACCESS = ' '
    importing
    user_data = g_user_data
    EXCEPTIONS
    USER_NOT_EXIST = 1
    PARAMETER_ERROR = 2
    X_ERROR = 3
    OTHERS = 4
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    fold_type = g_user_data-outboxfol+0(3).
    fold_yr = g_user_data-outboxfol+3(2).
    fold_number = g_user_data-outboxfol+5(12).
    clear g_files.
    refresh : g_objcnt,
    g_objhead,
    g_objpara,
    g_objparb,
    g_receipients,
    g_attachments,
    g_references,
    g_files.
    method1 = 'SAVE'.
    g_document-foltp = fold_type.
    g_document-folyr = fold_yr.
    g_document-folno = fold_number.
    g_document-objtp = g_user_data-object_typ.
    *g_document-OBJYR = '27'.
    *g_document-OBJNO = '000000002365'.
    *g_document-OBJNAM = 'MESSAGE'.
    g_document-objdes = 'sap-img.com testing by program'.
    g_document-folrg = 'O'.
    *g_document-okcode = 'CHNG'.
    g_document-objlen = '0'.
    g_document-file_ext = 'TXT'.
    g_header-objdes = 'sap-img.com testing by program'.
    g_header-file_ext = 'TXT'.
    call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
    exporting
    method = method1
    office_user = sy-uname
    ref_document = g_ref_document
    new_parent = g_new_parent
    importing
    authority = g_authority
    tables
    objcont = g_objcnt
    objhead = g_objhead
    objpara = g_objpara
    objparb = g_objparb
    recipients = g_receipients
    attachments = g_attachments
    references = g_references
    files = g_files
    changing
    document = g_document
    header_data = g_header
    FOLMEM_DATA =
    RECEIVE_DATA =
    File from the pc to send...
    method1 = 'ATTCREATEFROMPC'.
    g_files-text = ws_file.
    append g_files.
    call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
    exporting
    method = method1
    office_user = g_owner
    ref_document = g_ref_document
    new_parent = g_new_parent
    importing
    authority = g_authority
    tables
    objcont = g_objcnt
    objhead = g_objhead
    objpara = g_objpara
    objparb = g_objparb
    recipients = g_receipients
    attachments = g_attachments
    references = g_references
    files = g_files
    changing
    document = g_document
    header_data = g_header
    method1 = 'SEND'.
    g_receipients-recnam = 'MK085'.
    g_receipients-recesc = 'B'.
    g_receipients-sndex = 'X'.
    append g_receipients.
    call function 'SO_DOCUMENT_REPOSITORY_MANAGER'
    exporting
    method = method1
    office_user = g_owner
    ref_document = g_ref_document
    new_parent = g_new_parent
    importing
    authority = g_authority
    tables
    objcont = g_objcnt
    objhead = g_objhead
    objpara = g_objpara
    objparb = g_objparb
    recipients = g_receipients
    attachments = g_attachments
    references = g_references
    files = g_files
    changing
    document = g_document
    header_data = g_header.
    *-- End of Program

  • How to change the ROLE: Integration server in business system in SLD

    Hi,
    I am facing error in communication, becuase the integration server has been attached to in correct business system with incorrect client (001 instead of 700).
    In SLD, business system, 'integration' tab there is button "Associate with XI'.
    I have selected the role as integration server for the corrrect business system and aslo gave the correct pipeline url for integration server.
    When I press the button "Associate with XI" and Save nothing happened.
    How do i change my integration server.
    Please help.
    Regards,
    Rehan

    Hi Gaurav,
    I have checked the teachnical system  and its of type WEB AS ABAP. and when i click on the business systems tab, there are two business systems. When i double click on the business systems
    I realised that both the business systems has been defined with role: integration server.
    IN one business system i can see that there is "associate with XI" button.
    But when i want to chnage the business system with correct client 700 , i tried pressing the button after entering the correct pileline url.... nothing happens.....
    Can you please let me know the procedure to chnage the technical system with respect to integration engine???
    PLease help as our project is held up due to this.
    regards,
    Rehan

  • Related Integration server for Business System  in SLD

    HI All,
    IN SLD we have one Technical System for PI and one TS for R/3 System.
    When I crating Business System for R/3 in R/3 TS, in Integration Tab what I have to select for Related Integration Server option.
    It is having None and Business System of PI TS System.
    Please help me in this.
    Regards,
    Sree

    Hey
    Looks like you are defining this Business system as a Integration server.
    See here is what you need to do.
    Step 1:First of all create a business system for XI system itself,this business system will have details of XI system and its role will be Integration server.You can have only 1 Integration server(hence you are getting the error).
    Step 2:Now define a business system of type Web as ABAP for R/3 system,this system will have role as Application system but the related integration server will be the name of the business system of PI system(the one which you defined in Step 1).
    As of now,are you getting any business system name in the drop down box for related integration server while creating business system for R/3 in SLD?
    If yes,then simply select that
    Thanx
    Aamir

  • SLD integration server

    Hi,
    i am not able to select my integration server and my host name as xi1. what is the problem. As i have created a third party TS. and given the host name as xiser0 which is the xi server host name. and selected the softwere component. i have created 2 logical system with tcode bd54. while creating the BS i am not able to select the business system role as integration server and related integration server. is it any problem.
    Thanks

    Hi
    Check the following thread
    SLD: Diff b/w Standalone java, Web AS Java
    this question gets featured in the SDN at least every fortnight i guess
    regards
    krishna

  • "This message may not have been delivered to User Name because there was no response from the server." in IM chat

    Hello All, 
    Sometime users are getting below error message on the IM windows when they having P2P IM Chat. 
    "This message may not have been delivered to User Name because there
    was no response from the server."
    I can see below error on the Lync 2013 Monitoring page. 

    Hi,
    Please make sure all required ports have been allowed. You can verify that all ports are open can accepting connections using telnet.
    Telnet from External Client:
    Test to SIP.domain.com 443/SIP
    Test to WebConf.domain.com 443/PSOM
    Test to AV.domain.com 443/STUN
    Telnet from Lync 2013 Edge:
    Telnet to Pool.domain.com 5061/SIP
    Telnet from Lync 2013 Pool:
    Telnet to LyncEdge.domain.com 5061
    Telnet to LyncEdge.domain.com 443
    Telnet to LyncEdge.domain.com 5062
    Telnet to LyncEdge.domain.com 4443
    Telnet to LyncEdge.domain.com 8057
    Best Regards,
    Eason Huang
    Eason Huang
    TechNet Community Support

Maybe you are looking for

  • EP 7.4 with SAML 2.0

    Hi All, I am using 7.4 portal and need to connect to .net system using SAML 2.0. The user ids will be different in portal and .net system. Please help me in configuring this SSO. Thanks, Swarnaprakash

  • 6120C, email getting stuck in outbox

    Hi, Until the end of last week I could send emails fine; then looking today I had half a dozen, all stuck in the outbox! When I try to manually send them, they just sit there.... staying in the outbox, flagged as 'Queued'. Anyway, I have two email ac

  • /etc/hosts for dhcp

    Hello People i have installed 11.2.0.1 on oracle linux release 5 update 7 and is working fine i have logged into the actual system where i installed and checked that sqlplus "/as sysdba" is working and i can log into the database my company has all i

  • SAP Interactive Forms by Adobe in JAVA testdrive?

    Hi Does the java testdrive 04s SP9 really contain a complete Adobe engine? The reason for my question is that in an older testdrive was only included the designer tool, but not the engine that makes it all work (Adobe Document service). Best regards

  • [svn] 3906: Merge change 3905 from BlazeDS trunk to 3.0.x

    Revision: 3906 Author: [email protected] Date: 2008-10-27 11:04:03 -0700 (Mon, 27 Oct 2008) Log Message: Merge change 3905 from BlazeDS trunk to 3.0.x Modified Paths: blazeds/branches/3.0.x/apps/team/WEB-INF/flex/messaging-config.xml blazeds/branches