Which API is recomanded -SOAP JAXM communication

Hi,
There are two implementation of SOAP APIs
1) import javax.xml.soap.SOAPEnvelope;
2) import org.apache.soap.Envelope;
Do both have same functionalities ?
DO both can send attachments ?
What's the different??what's the purpose of having two packages
Thanks for your time

My understanding is that the SOAP protocol/specification comes from W3C. Both Sun and Apache have released their own implementations of this specification. Hence, you have 2 different packages.
As to their respective adherence and peformance differences, I don't have an answer for you.

Similar Messages

  • Error in the SOAP   Receiver communication channel

    Hi ,
            My scenario is RFC - to -SOAP (synchronous )   i have  specified the TARGET URL inthe   SOAP receiver  comminication chanel.. but  while testing  the interface   by providing the test  data from R/3 ..  I'm not getting any Respose.. ..
    If I check in the SXMB_MONI in  i'm getting the following message ..  but the URL whicjh i provided that is fine.. but my doubt  is  through XI  may be it's  not able to connect the  Target System... .. so, please suggest me...
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: www.webservicex.net</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    regards
    Jain

    By default, the SOAP adapter sends the SOAP message with the content type text/xml.
    When you check "Do not use SOAP envelope", the default contnet type is application/xml.
    You can change the content type like this: Go to the SOAP receiver communication channel module tab. Add the module "localejbs/AF_Modules/MessageTransformBean" before the standard module. Add the parameter name Transform.ContentType and value text/xml.
    Check out this
    /people/varadharajan.krishnasamy/blog/2007/01/09/troubleshooting-soap-message--xi
    One way of testing ur scenario
    /people/michal.krawczyk2/blog/2005/08/25/xi-sending-a-message-without-the-use-of-an-adapter-not-possible
    Also have a look here
    SAP Note 856597
    reward points if solution found helpfull
    regards
    chandrakanth

  • Error in calling SOAP receiver communication channel in a syncronous comm

    Hi I am getting the following dump..when I am sending some employee data from SAP to a webservice through a SOAP reciver communication channel.
    It is a syncronous communication.
    ShrtText
        Access with 'ZERO' object reference not possible.
    What happened?
        Error in ABAP application program.
        The current ABAP program "CL_PROXY_FRAMEWORK============CP" had to be
         terminated because one of the
        statements could not be executed.
        This is probably due to an error in the ABAP program.
    Error analysis
        An exception occurred. This exception is dealt with in more detail below
        . The exception, which is assigned to the class 'CX_SY_REF_IS_INITIAL', was
         neither
        caught nor passed along using a RAISING clause, in the procedure
         "XI_PROCESS_PAYLOAD" "(METHOD)"
            The reason for the exception is:
        There was an attempt to access a component using a 'NULL' object
        reference (points to nothing).
        An object reference must indicate an object (an instance of a class),
        before it can be used to access components.
        Either the reference was never set or it was set to 'NULL' using a
        CLEAR statement.
    Trigger Location of Exception
        Program                                 CL_PROXY_FRAMEWORK============CP
        Include                                 CL_PROXY_FRAMEWORK============CM011
        Row                                     46
        Module type                             (METHOD)
        Module Name                             XI_PROCESS_PAYLOAD
    I think this error is coming while sending the response..can anybody tell me how to correct this error...
    Thanks in advance...

    No in the adapter monitoring...
    It shows the messages for all other adapters...
    But there is not even a single processing message for this SOAP communication channel...it only shows active..that means I think there is no processing of messagethrough this ..is it ?...but why not there is any error in the SXMB_MONI..
    Earlier it was giving an error saying the proxy authentification required..but that doesn't work...now I have removed the proxy settings ..and it takes the program to dump..

  • Using common SOAP Sender Communication Channel.

    Hi,
    Env: PI 7.1
    Scenario: Same SOAP Sender communication channel is used in more than one scenario.
    Properties "Use Encoded Headers" and "Use Query Strings" are checked.
    Problem: SOAP channel is getting binded with the first interface/call. Subsequent calls from other interface proxies fails. It always shows the interface which used this channel for the first time.
    My aim is to use the common channel in multiple scenarios and do not want to create separate channel for each.
    This was working fine in PI 7.0.
    Please help.

    A workaround would be creating multiple sender agreements using the same channel. For this while creating the sender agreement, use the option "Sender uses virtual receiver". This was u may use same set of sender service and sender interface with same channel.
    Regards,
    Prateek

  • Timeout in synchronous SOAP-Proxy communication

    Hi,
    I have a synchronous SOAP-Proxy communication (3rd party - XI - ERP). 3rd party is always the initiator of the communication.
    Is there a general rule about who should set a timeout? Does it should be set by a 3rd party, XI, or ERP? In our scenario it shouldn't be longer than 30 seconds.
    If it needs to be set on SAP side, where it should be defined? On XI or on ERP, or on both systems? 
    Which SAP parameter is used for setting the timeout for synchronous communication that does not affect other already working ways of communication, like asynchronous.
    Thanks for answers.
    Janos

    Hi,
    The timeout property needs to be set at XI level. For SOAP sender timeout check sap note no. 856597 which reads as  The default timeout value for synchronous calls is 5 minutes. You can increase this value by setting parameter XI.Timeout in the module parameter table of the SOAP adapter. The value must be given in milliseconds. For example, value 600000 represents the timeout value of 10 minutes. This parameter is not recognized in systems prior to SP13.
    Thanks!

  • SSL in Soap receiver communication channel

    Hi,
    I have a webservices that works fine in Soap UI. The webservice provider uses the SSL, but works like a web browser, doesn´t need to install a certificate before access the webservice.
    But when i try to use SAP PI using the soap receiver communication channel, the soap adater return the follow message:
    "Peer certificate rejected by ChainVerifier"
    I read some thing about using axis to solve this problem but I can´t find anything to configure this scenario.
    If someone had this problem and solved it, i will apreciate the help.
    Thanks
    Fabricio

    I Have 2 communication channel:
    1) This works fine
    Adapter Type: SOAP
    Receiver
    Transport Protocol: HTTP
    Message Protocol: SOAP 1.1
    Adapter Engine: Integration Server
    Target URL: https://gw-homologa.serasa.com.br/wsacheixml/wsacheixml.asmx
    SOAP Action: https://sitenet05.serasa.com.br/WSAcheiXML/WSAcheiXML/ConsultaAchei
    2) This doesn´t work
    Adapter Type: SOAP
    Receiver
    Transport Protocol: HTTP
    Message Protocol: SOAP 1.1
    Adapter Engine: Integration Server
    Authentication: Basic
    User/Password
    Target URL: https://treina.spc.org.br/spc/remoting/ws/consulta/consultaWebService
    SOAP Action: blank
    Both are https and the certificate is sent at communication time (There isn´t a certificate to install in the Key Store in Visual Administrator)
    I read that Axis manage this kind of integration with webservices, because the certificate must be installed at the moment of sending http request.
    I don´t know why the first interface works fine an the another doesn´t work, then I´m trying with Axis.
    In the SOAP UI both interfaces work fine.
    Thanks

  • Content type in SOAP receiver communication channel

    Hello,
    so far I thought that the SOAP receiver adapter always sets the content type to text/xml. However now I found out the following strange thing:
    If you check the option "without SOAP envelope" then the content type is application/xml. Is there any way to influence this as the receiver of the message only accepts text/xml.
    Have you had any similar experience?

    hi,
    - open SOAP receiver communication channel - module tab
    - add the module "localejbs/AF_Modules/MessageTransformBean" or AF_Modules/MessageTransformBean"  before the standard SOAP module
    - add the parameter = Transform.ContentType with value = text/xml
    I'm just not sure if you need to add value =  text/xml or "text/xml" so try the second one if the first one will not work
    does it work now?
    Regards,
    Michal Krawczyk

  • Which Api..?

    Hello everyone, as a newbie in xml, I would like your help :)
    I would like to create an application, that allows a user to create/modify/save an xml file that follows a specific w3c xml-schema,not dtd (although if it gets much easier with dtd i will probably use that in the end). The user should be able to see the tree structure of the xml and to be able to navigate through it [in one frame(left)] and fill in values to the fields that he wants(e.g. add in the xml that "david" is the 'author') [in a second frame(right)]. Ideally, this should run on a web server, so that the user can create/modify/save the xml by visiting a webpage.
    The procedure to do so (the way i have it in my mind right now) is this:
    1)somehow parse my xml-sxhema and create a tree(?) data structure (on the memory(?)) that contains all the empty fields
    2)present this structure to the user
    3)when the user clicks on an a tree item [left frame], that has fields that can be filled, then I must find out(how?) which are these fields and present them to the user, to fill them in[right frame].
    I have been searching on the subject on the web the last few days, but got myself really confused. I am not sure which API to use e.g. JAXB, JAXP, DOM, JDOM, SAX etc.Since random access of the xml is needed, will I need to create java classes that manipulate the xml file or a simple parser will be fine?
    Which one would you recommend me to use and why? Please enlighten me :)
    Thanx in advance, your help is greatlly appreciated!
    -Orestis

    The Price_Request procedure in the QP_PREQ_PUB package is the pricing engine API that is available for public use. However, you need to prepare data before and for calling this API. Here is a proposed structure
    Qp_Attr_Mapping_Pub.Build_Contexts
    ...here you build the various data records (E.g. LINE_TBL_TYPE, CONTROL_RECORD_TYPE etc..)
    QP_PREQ_PUB.PRICE_REQUEST -- to compute the price
    I suggest you look at the price_line and price_order apis that order management uses. While these are not public apis, they will give you a sense for how to call the pricing engine.
    Hope this helps.
    Thanks.
    Kannan

  • Soap adapter communication channel problem

    Hi...
      While doing Webservices to file scenario, in component monitoring, the soap adapter communication channel is showing as (in small traiangle inyellow color) channel started but inactive

    Hi leelaratnam,
    Please check that you have only 1 communication channel active and running.
    This happens when more than 1 CC is pointing or waiting for the same incoming data.
    Also perform a dummy activate (i.e. write somthing in description and activate) in your message mapping and communication channel objects in case you are using PI 7.0
    Thanks,
    Varun

  • Which API can use to save PDF document with Adobe Reader 9?

    Hello,
        which API can use to save PDF document with Adobe Reader 9? It is said that "CosDocSaveWithParams" can't be used.
    thanks!
    jimmy

    Unless the PDF file is "READER ENABLED for SAVE" (see the adobe product pages on LiveCycle Reader extensions server)
    You are not able to call a Save at all, if the document is reader enabled then you need to use the JavaScript call to save the document,
    As you appear to be wanting to do this in a plug-in you would need to call the script from a plug-in, this can be done using the AFExecuteThisScript () function call.
    Please note that this does will fail if the document is not reader enabled for save and you need to include the Forms HFT in your plug-in,
    This plug-in would also have to be approved by Adobe to be used with the reader and as you are implementing a function that is available in the full Acrobat product this may not be a straight forward approval.
    HTH
    Malky

  • Which API can be used to write to an XML file(web.xml) programmatically

    Hi,
    I wish to write to the web.xml file programmatically.Could anyone point me to the
    API that is to be used.
    I am aware of the API to be used for extracting the node and the tag values - com.bea.p13n.xml.util.DomHelper
    but this class has only getters and I wish to know which API should be used to set
    the xml nodes.
    It is important and am looking forward to pointers.
    Thanks in advance!
    Regards,
    Shikha

    S. Bajaj
    org.w3c.dom Api
    Deepak
    shikha wrote:
    Hi,
    I wish to write to the web.xml file programmatically.Could anyone point me to the
    API that is to be used.
    I am aware of the API to be used for extracting the node and the tag values - com.bea.p13n.xml.util.DomHelper
    but this class has only getters and I wish to know which API should be used to set
    the xml nodes.
    I am unable to find answer to this.
    Looking forward to pointers and help.
    Thanks in advance!
    Regards,
    Shikha

  • Which API updates employee info

    Hi,
    we are working in oracle applications 11i
    I need update /add existing employee info in PER_ALL_PEOPLE_F table . Especially EMAIL_ADDRESS column. I can see that we add or update email address from Office Details Tab in People -> Enter and Maintain form.
    So which API can I use to update employee emails???
    thank you...

    Hi,
    this is a sample of updating Person API:
    hr_person_api.update_person
    (p_validate => FALSE
    ,p_effective_date => TRUNC(SYSDATE)
    ,p_datetrack_update_mode => 'CORRECTION'
    ,p_person_id => l_person_id
    ,p_object_version_number => l_object_version_number
    ,p_national_identifier => lcursor.national_id
    ,p_employee_number => l_employee_number
    ,p_effective_start_date => l_effective_start_date
    ,p_effective_end_date => l_effective_end_date
    ,p_full_name => l_full_name
    ,p_comment_id => l_comment_id
    ,p_name_combination_warning => l_name_combination_warning
    ,p_assign_payroll_warning => l_assign_payroll_warning
    ,p_orig_hire_warning => l_orig_hire_warning
    regards,
    taha

  • Which API is invoked by coherence when a object meets it's expiry interval

    Hi,
    Need an Information about which API is invoked by Coherence Internally when an cached object meets it's expiry delay time or interval?
    Will Coherence invokes CacheFactory. releaseCache(NamedCache map) API or CacheFactory.destroyCache()?
    We need this details because we see increase in size(byte) of object and count as 0 in our JMX stats. expiry-delay is 10 sec.

    Hi Jonathan,
    Thanks a lot for the response. We've observed that cached objects size shrinks and it's sporadic and for expired cache objects we see increase in size of the object. We are using following code to calculate size of cache object in bytes.
    import com.vladium.utils.ObjectProfiler;
         * Returns the size of near cache
         * @param cache
         * @return size of near cache
         int getSizeInBytes(){
    NamedCache cache = CacheFactory.getCache(cacheName);
              return ObjectProfiler.sizeof(((NearCache) cache)
              .getFrontMap());
         }

  • Which API should i use... ???

    I want to store an image into databse. Which API is used for this purpose.

    JDBC. There's a forum for that too if you have more specific questions about it.

  • Which API for Additional Assignment Details?

    Hi All
    I have two segments for the Additional Assignment Details DFF, first 'Mobile Provided' and second 'Food Allowance'. For this i want to pass 'yes' or 'no' for the employees.
    Which API I can use for this?
    Regards
    Rahman

    Use the 'hr_assignment_api.update_emp_asg' API and pass the values for the DFF in the attributes depending on the attributes you choose while registering a DFF...
    Ex:
    p_ass_attribute1 => 'Mobile Provided',
    p_ass_attribute2 => 'Food Allowance'
    Best Regards
    Arun Kumar S.R
    Apps Associates

Maybe you are looking for