SOAPElement in web service request does not work

I have following code call web service:
ServiceFactory sf = ServiceFactory.newInstance();
Service service = sf.createService(new QName("http://echo.demo.oracle/", "tns"));
String endpoint="http://localhost:8888/test/echo";
Call call = service.createCall();
call.setTargetEndpointAddress(endpoint);
SOAPFactory soapfactory = SOAPFactory.newInstance();
SOAPElement m1 = soapfactory.createElement("echoStringElement", "tns", "http://echo.demo.oracle/");
SOAPElement m2 = soapfactory.createElement("sss", "tns", "http://echo.demo.oracle/");
m2.addTextNode("Bob");
m1.addChildElement(m2);
System.out.println("Request is: ");
((XMLElement) m1).print(System.out);
call.invoke( new Object[]{m1} );I got the SOAP request like:
<?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">
<env:Body>
<tns:echoStringElement xmlns:tns="http://echo.demo.oracle/"/>
</env:Body>
</env:Envelope>
Why the element m2 "sss" missing from request?
from ((XMLElement) m1).print(System.out);
I can see both m1 and m2 and XML looks fine.
Also, I noticed actually the SOAP request is not affect by the SOAPElement I created since even I modified some string in this line, I still get the same request.
SOAPElement m1 = soapfactory.createElement("echoStringElement", "tns", "http://echo.demo.oracle/");

Hello Ivan,
I think you better submit a support ticket to investigate the issue.
Regards,
Konstantin

Similar Messages

  • Web service ChangeProduction does not work

    Dears,
    I tried to use web service ChangeProduction to change a SFC to another Operation in the same route, the other conditions(shop order, BOM, material) are the same.  The request formate in soapUI is as below. 
    But the result is that I can see a production change action history with CHGRTR activity code, but Operation was not changed, the SFC still in the original operation.
    What did I missed?
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:me="http://sap.com/xi/ME" xmlns:gdt="http://sap.com/xi/SAPGlobal/GDT">
       <soapenv:Header/>
       <soapenv:Body>
          <me:ChangeProductionRequest_sync>
             <!Optional:>
             <me:MessageHeader>
                <!Optional:>
                <gdt:ID schemeID="?" schemeAgencyID="?" schemeAgencySchemeAgencyID="?">?</gdt:ID>
                <!Optional:>
                <gdt:UUID>?</gdt:UUID>
                <!Optional:>
                <gdt:ReferenceID schemeID="?" schemeAgencyID="?" schemeAgencySchemeAgencyID="?">?</gdt:ReferenceID>
                <!Optional:>
                <gdt:ReferenceUUID>?</gdt:ReferenceUUID>
             </me:MessageHeader>
             <me:ChangeProductionRequest>
                <me:SiteRef>
                   <me:Site>HP</me:Site>
                </me:SiteRef>
                <!1 or more repetitions:>
                <me:SfcRequest>
                   <me:SfcRef>
                      <!You may enter the following 2 items in any order>
                      <me:Sfc>HP41</me:Sfc>
                      <!Optional:>
                      <me:SiteRef>
                         <me:Site>HP</me:Site>
                      </me:SiteRef>
                   </me:SfcRef>
                </me:SfcRequest>
                <me:NewRouter>
                   <!You may enter the following 4 items in any order>
                   <!Optional:>
                   <me:SiteRef>
                      <me:Site>HP</me:Site>
                   </me:SiteRef>
                   <me:Router>ROUTE1</me:Router>
                   <!Optional:>
                   <me:Revision>A</me:Revision>
                   <!Optional:>
                   <me:RouterType>U</me:RouterType>
                </me:NewRouter>
                <me:PlacementOperation>
                   <!You may enter the following 3 items in any order>
                   <!Optional:>
                   <me:SiteRef>
                      <me:Site>HP</me:Site>
                   </me:SiteRef>
                   <me:Operation>OP4</me:Operation>
                   <me:Revision>A</me:Revision>
                </me:PlacementOperation>
                <me:StepId>40</me:StepId>
                <me:UserRef>
                   <!You may enter the following 2 items in any order>
                   <!Optional:>
                   <me:SiteRef>
                      <me:Site>HP</me:Site>
                   </me:SiteRef>
                   <me:UserId>IVAN</me:UserId>
                </me:UserRef>
             </me:ChangeProductionRequest>
          </me:ChangeProductionRequest_sync>
       </soapenv:Body>
    </soapenv:Envelope>

    Hi Mike,
    Thanks for your information.
    My purpose is just to change the to another operation in the same route.  I've tried to use shop floor xml interface to do the same thing, it works.  The format is as below.  The SAPME Change Production function UI also can work.  Why web service can not work?  Is it a bug?
    <PRODUCTION_REQUEST>
    <CHANGE_PRODUCTION>
    <SITE>HP</SITE>
    <USER>IVAN</USER>
    <SFC_LIST>
    <SFC>
    <SITE>HP</SITE>
    <ID>HP32</ID>
    </SFC>
    <SFC>
    <SITE>HP</SITE>
    <ID>HP33</ID>
    </SFC>
    </SFC_LIST>
    <ITEM_BO>
    <SITE>HP</SITE>
    <ITEM>MA1</ITEM>
    <REVISION>A</REVISION>
    </ITEM_BO>
    <ROUTER_BO>
    <SITE>HP</SITE>
    <ROUTER>ROUTE1</ROUTER>
    <REVISION>A</REVISION>
    <ROUTER_TYPE>U</ROUTER_TYPE>
    </ROUTER_BO>
    <BOM_BO>
    <SITE>HP</SITE>
    <BOM>BOM1</BOM>
    <REVISION>A</REVISION>
    </BOM_BO>
    <NEW_ITEM>MA1</NEW_ITEM>
    <NEW_ROUTER>ROUTE1</NEW_ROUTER>
    <NEW_BOM>BOM1</NEW_BOM>
    <PLACEMENT_OPERATION>OP2</PLACEMENT_OPERATION>
    </CHANGE_PRODUCTION>
    </PRODUCTION_REQUEST>
    Edited by: Ivan_liu_tw on Jan 5, 2011 2:20 AM

  • HTTPS Web Service datastore : does not work in case of proxy

    Data Services 12.2 on Windows XP SP2
    I've set up a datastore, type "web service", url is https://.... (an external web service, outside of our company)
    I'm able to import the functions of this web service into the datastore.
    In a DF, in a query transform, I call one these functions.
    The job fails with this error message :
    There is no response for the web service <searchCertificate>. Ensure that the network, web server, and service are running properly. Also ensure that the service client call time out is set properly.
    I'm sure the web service is active. I have to pass a proxy.
    When I do not have to pass a proxy (when I execute this job on my laptop not connected to the office network) the job runs fine !
    How can you configure the axis2.xml so that https can run with a proxy ? (no problem to do this for http web services, but I do not see a solution for https web services !)
    Thanks !!

    Hi Sukarna,
    the connection is not the problem.
    Actually I've tested the scenario of abap proxy --> PI -->abap proxy for the same interface, it works fine. Only when I try ws instead of proxy, I got this error. Since proxy scenario works fine, the connection should not be issue.
    any more clues?
    Thanks

  • Web Service Testing Does Not Work In IE

    I am using WLS 7.0SP4 with a webservice generated from an EJB. I have been
    testing it using the web service home page, and I have noticed this strange
    behavior: when I press the "Invoke" button in Internet Explorer 6, I am sent
    back to the web services home page; when I do the same in Mozilla Firebird,
    I get the page indicating what transpired as the web service was invoked.
    Simple print statements in the EJB indicate that with Internet Explorer the
    EJB is definitely not being called when I press the Invoke button.
    Furthermore, the same print statements are executed when using Mozilla
    Firebird and pressing the Invoke button.
    Any ideas?
    Jimmy
    James "Jimmy" Wilson
    [email protected]

    Yes this is an issue with IE. I think, there is a max
    size for HTTP GET in IE. If the get request is larger
    than the max size, it simply cuts off the extera data
    (without any error message). When this happens,
    server things that you are requesting home page, instead
    of invoking a method.
    You can either use a different browser, or try to reduce
    the size of data in the method invoke form.
    Regards,
    -manoj
    http://manojc.com
    "James Wilson" <[email protected]> wrote in message
    news:[email protected]..
    I am using WLS 7.0SP4 with a webservice generated from an EJB. I havebeen
    testing it using the web service home page, and I have noticed thisstrange
    behavior: when I press the "Invoke" button in Internet Explorer 6, I amsent
    back to the web services home page; when I do the same in MozillaFirebird,
    I get the page indicating what transpired as the web service was invoked.
    Simple print statements in the EJB indicate that with Internet Explorerthe
    EJB is definitely not being called when I press the Invoke button.
    Furthermore, the same print statements are executed when using Mozilla
    Firebird and pressing the Invoke button.
    Any ideas?
    Jimmy
    James "Jimmy" Wilson
    [email protected]

  • Web Services button does not work

    My friend purchased this D110 printer and he presses Web services button nothing happens. It is currently connected to Dlink router and we can access the printer from the laptop, however, when selecting product updates it says it is updated.
    Also it does not display the email Id and even after selecting reset in the menu.....help
    Say "Thanks" by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as "Accepted Solution"

    David: 
    Can you please:
    1. Confirm that the Wireless button on the front of the printer has a solid blue light?
    2. Press and release the Wireless button and confirm that an IP address is displayed in the top-right of the display.  It should start with 192.168...
    3. After confirming 1 and 2 above, return to printer home screen, and press the Wireless button and select Web Services Settings from the menu.
    4. Take the appropriate option below:
         A. If the "Remove Web Services" option is displayed, select it.   Then continue with step B below to re-enable web services
         B. If the "Enable Web Services option is displayed, select it. 
    5. Complete the Web Services enablement process, which should result in a print out of the Web Services info sheet with a new email address for the printer. 
    6. Go to www.hpeprintcenter.com and create an account and add your printer to your account using the printer code on the Web Services info sheet you printed out.  This will allow us to track the results of your emails if they don't print. 
    7. After adding the printer to your account, send an email to your printer, ensuring you enter the email address correctly
    8. If the email prints on the printer, you're good.  
    9. If the email doesn't print, look at your Job History on www.hpeprintcenter.com and let us know if you see an error message in the job list, and what it says. 
    Thanks! 
    Press and release the Wirel
    I am an HP employee.

  • Upgrade from 12.1.1 to 12.1.3 now Find Service Request does not work.

    I recently upgraded our Test machine from 12.1.1 to 12.1.3 (RHEL 4.8). After performing the install and applying appropriate patches and most recent CPU when I attempt to 'Find Service Request' I can search by number, choose the correct SR I want in the form and click open. However when the SR form opens it just defaults to a new SR instead of the one returned in the search results. I have generated all form files again and that did not change anything. I have searched and not come across anything that appears to be applicable. Anyone have any ideas?
    Thanks

    I am logged in as myself and using the 'Service' responsibility.
    Service -> Service Requests -> Find Service Requests
    versions:
    CSXSRISR 120.208.12010000.84
    I do the search and I find it, however when it goes to open the result the sr form is as it is new.
    Oddly enough if I go under sysadmin and use the same responsibility, same path and search the sr will open the returned result.
    As sysadmin however it has a different layout in the 'folder' at the top of the screen. Could this be causing the difference or should that matter?
    Thanks

  • Web service scenario does not work

    Hello,
    I am prototyping (abap) ws --> PI  --> (abap) ws scenario in PI 7.1 with sender and receiver CC of ws adapter.
    In the sender system, I coded a abap program to call the proxy to send our ws message, message looks like being sent, in sxmb_moni in the sender system I can see the message, however the status is "Released for processing (WS)", and the sender service of the logged message is empty. In PI, no message is logged in sxmb_moni. Looks like message was sent out from the ws runtime engine of hte sender system, but it didn't reach PI. Does anyone have idea what this is?
    Thanks
    Jayson

    Hi Sukarna,
    the connection is not the problem.
    Actually I've tested the scenario of abap proxy --> PI -->abap proxy for the same interface, it works fine. Only when I try ws instead of proxy, I got this error. Since proxy scenario works fine, the connection should not be issue.
    any more clues?
    Thanks

  • I've become increasingly frustrated with the ipad adobe app. I've subscribed to be able to convert my pdf files into word documents and it has yet to work I've paid for a service that does not work which in turn makes me a disgruntled customer to say the

    I've become increasingly frustrated with the ipad adobe app. I've subscribed to be able to convert my pdf files into word documents and it has yet to work I've paid for a service that does not work which in turn makes me a disgruntled customer to say the least very disappointed with such horrible service

    Which service did you subscribe to?  Adobe PDF Pack?
    Once I know the service that you subscribed to, I can move this post to the right forum so that you can get in touch with the folks who can assist you.

  • HT5594 I upgraded to iOS 7 and my location service button does not work.  How can I turn it back on?

    I upgraded to iOS 7 and my location service button does not work.  How can I turn it back on?

    Settings>General>Restrictions>Privacy>Location Services. Have you restricted it?

  • REST Web Service Output Parameter not working in POST Handler

    I've created a RESTful Web Service in Oracle Apex, using a POST method as "handler".   I've setup 11 input parameters which all work fine, it is my one output parameter that does not return successfully.
    Here is detail on the Output Paramter
    Name:  returns
    Bind Variable Name:  :returns
    Access Method:  OUT
    Source Type: Response
    Parameter Type:  String
    The actual source is a call to a pl/sql package that returns a value that I set :returns equal to (eg :returns := v_result).   I've tried this with Source Type Header and still the same result, 'no output'.
    I see APEX is calling wwv_flow_api.create_restful_param to generate the parameters (for importing), is there any documentation on this procedure?
    How can I get this output parameter to return something in the response?
    The request accepts a Json payload.
    Any help greatly appreciated
    Thanks,
    James

    Solved my own problem :returns does not work needs to be returns
    Does Not Work
    Name:  returns
    Bind Variable Name:  :returns
    Access Method:  OUT
    Source Type: Response
    Parameter Type:  String
    Does Work
    Name:  returns
    Bind Variable Name:  returns
    Access Method:  OUT
    Source Type: Response
    Parameter Type:  String

  • Updating extended fields in SRM Business Partner Web Dynpro UI does not work

    Hey community,
    I'd like to extend the SAP SRM Business Partner Web Dynpro (SRM 7.13). I did it like in SAP Note 1386310 described. Everything works fine, the fields show the correct data. But updating these fields does not have any effect.
    I only want to extend the existent fields NAME_ORG3 and NAME_ORG4. I did the following steps:
    - Because of the fact that the fields are existent and not custom, I skipped the extension of structures INCL_EEW_BUT000 and INCL_EEW_BUT000_X (ok, in utter despair I even tried this, but of course I got the message "fields already exist...")
    - I added the 2 fields to the SRM business partner data transfer structure INCL_EEW_BP_CSF_COMPANY_DATA.
    - In Web Dynpro /SAPSRM/WDC_MODC_NAME, view V_PS_OIF_NAME I added the fields NAME_ORG3 and NAME_ORG4 to the context node COMPANY_DATA
    - I added corresponding Input fields and labels to the WD layout.
    - in view /sapsrm/v_mdfsbc I customized the new fields
    -> the new fields are visible in the WD, and, oh wow, they even show the correct data!
    -> Unfortunately, updating the fields does not work, but000 does not get any data.
    Debugging the function "bupa_central_extincl_change" brings up, that function BUP_MEMORY_BUT000_GET gets a but000 structure with filled NAME_ORG1 and NAME_ORG2, but NAME_ORG3 and NAME_ORG4 are empty.
    I also regarded SAP Note 1453747, but the code was already right.
    Any Ideas? Many thanks in advance!
    Steffi

    Hi  Stefanie Krause,
    I am also facing the same problem
    I added the one fields "APPROVAL_EMAIL” to the SRM business partner, data transfer structure '/SAPSRM/S_CLL_BP_COMPANY_DATA ' . I have appended the structure.
    I added corresponding Input fields and labels to the WD layout.
    -> the new fields are visible in the WD,
    -> i am able to visible the input field in WD,
    But if add some value press on next tab and back to the screen the value will be refreshed .
    Kindly help me
    Thanks and Regards,
    Maruthi.M

  • Web Services Demo (OTNMobileWrapper) not works

    I tested in my own database environment and also at my account on htmldb.oracle.com.
    - Wheather service works fine
    - Amazon works fine
    - OTNMobileWrapper did not
    I believe the URL and the Action are wrong!
    (the Urls in Wheather and Amazon I can call in the browser directly, the Url from OTNMobileWrapper was not found).

    yeah, i see what you mean regarding that "OTN Message Service" option in our web services demo. further inspection by a teammate reveals that more than a few of these OTN Live Web Services appear to not be working. i'm currently checking around to see what the deal is with that, but from an html db perspective, though, you should already know what you need to know: it is possible to call web services from within your html db applications. this particular one in our example appears to currently be unavailable (if you do feel it's our "URL and action", btw, please do send that info to [email protected]), but calls to the more stable ones like amazon, for instance, always work.
    hope this helps,
    raj

  • What can I do to solve 3G service that does not work properly on iPad3?

    Hi, I have problem with my new iPad3. the thing is that 3G service does not work properly, while Edge service is ok. I realize that it is not because of my Sim, but the device itself. What can I do? any idea? thank in advance.

    I wish it was that. When I turn on 3G, the signal is full. Then, when I connect internet using 3G, its signal turn to 2G, Searching, No service, searching, and finally go back to 3G agian. This happen every minute although I tried to move to a hight 3G signal.

  • When I click "remember my user name" for web pages, it does not work for web pages - I have to login after every restart (eg Hotmail)

    On websites I visit daily – newspapers, Hotmail, etc, even though I have clicked "remember me on this computer", it does not work. I have to log in every time I have restarted my computer (Mac OSX 10.5.8). Also, this may be related. I have iGoogle as my home page, but "themes", location, widgets, etc are not saved when I shut down.

    * Such details are stored in a cookie.
    * You need an allow cookie exception (Tools > Options > Privacy > Cookies: Exceptions) to keep that cookie, especially for secure websites and if you let cookies expire when Firefox closes
    * Make sure that you do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
    Clearing "Site Preferences" clears all cookies, images, pop-up windows, software installation, and password exceptions.
    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    "Remove the Cookies" from sites causing problems: Firefox > Preferences > Privacy > Cookies: "Show Cookies"
    If clearing the cookies doesn't help then it is possible that the file <i>cookies.sqlite</i> that stores the cookies is corrupted.
    Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete <b>cookies.sqlite-journal</b> and <b>cookies.txt</b>, if they exist, in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] in case the file cookies.sqlite got corrupted.
    * http://kb.mozillazine.org/Cookies#Removing_cookies

  • Web Services DevPak: passwort not working?

    I installed the Java Web Services Developer Pack and set a user/password during the installation. however, if i call
    http://localhost:8080/manager/list
    it requests name/passwort and it does not accept the username/passwort i set during the installation! i installed it three times with three different username/passwords and none is accepted. does it work at all?
    :-(

    I looked in tomcat-users.xml and there was the correct name/password. however, there was no HOME/build.properties so i created one as described in the tutorial setup. unfortunateley, it still doesn't let me in :-(
    i wonder if it's bad to have environment variables (ANT_HOME, TOMCAT_HOME, ...) for the JWSDP. Anyway, i removed them but it didn't help. I also have the WSDP/bin as the first entry in my PATH setting. (WindowsNT4.0SP6)

Maybe you are looking for