Code generated from imported web service model does not compile

I have created a model in Web Dynpro by importing a web service model using a valid WSDL, but the generated code won't compile because of type mismatches.
The problem is that methods sometimes try to pass plain objects to methods whose parameter is an array of that object, and a List to methods whose parameter is a plain object.
[Examples from SAP Netweaver tasks below]
Thanks,
Alastair
snip
The method setSessionData(EntInstType) in the type AssessRequestData is not applicable for the arguments (EntInstType[])     
ComplexType_AssessRequestData.java
Type mismatch: cannot convert from EntInstType to EntInstType[]     
ComplexType_AssessRequestData.java
The method setResult(List) in the type Response_JrbrsRefGeneric_listGoals is not applicable for the arguments (EntType)
Request_JrbrsRefGeneric_listGoals.java

I'm getting the same error.
Type mismatch: cannot convert from short[][] to short[]
ComplexType_Carton.java
and...
The method setNumeroscarton(short[][]) in the type Carton is
not applicable for the arguments (short[])
ComplexType_Carton.java     
Steps to recreate the problem:
1. Create and Expose webservice method with a parameter whose type has a short[][] (or bidimensional array of anything) field (property).
2. Try to import the web service in web dynpro... <b>kaputt</b> it won't compile.
<b>Seems like a bug to me. Someone please advice.</b>

Similar Messages

  • How to use generated code from "Import Web Services" with Cairngorm Framework

    I recently downloaded Flex Builder 3 beta 2 and tried out the
    wizard that lets you import web services. The code that is
    auto-generated makes if fairly straight forward to consume web
    services using the object types defined in the WSDL. No longer does
    the developer need to decode the XML payload! The only problem I am
    having is how does you integrate the auto- generated code with the
    Cairngorm framework? This seems like a huge question for anyone who
    might want to leverage Cairngorm and the auto-generated proxy code
    in the same project (like me).
    Here are the problems that I see so far.
    1) How do you configure the generated service class to work
    with the Cairngorm service locator? The service constructor only
    accepts a “LCDS destination string” which implies that
    you must use Lifecycle data services. Unfortunately, the project I
    am trying to retrofit currently uses a WebService and does not use
    data services. All I really need to do is change the endpoint URL
    (ie from local to a development server). This issue is noted in the
    bug https://bugs.adobe.com/jira/browse/FB-8456. What I think is
    needed is a way to set the endpointURI in the Services.mxml file.
    2) Even if I come up with a hack around #1, I do not receive
    a callback to my IResponder even though I register it immediately
    after the method call. I can register and listener function within
    my business delegate and receive the callback, but my Command
    object, which implements IResponder, does not receive the call back
    even though it is registered. From what I read in the ASDocs it
    should but it doesn’t for me!
    These are the issues I have observed in 3 hours of messing
    with this. I hope this makes sense. I would love to integrate
    auto-generated web service proxies into Cairngorm but I don’t
    see a straight forward way without re-architecting Cairngorm. Has
    any one else run across this issue? If so, do you have any insights
    on how to proceed? Any help is appreciated.

    Since I posted this question, I have abandoned the notion of
    auto-generated web services and embraced the good old FDS concept
    where the RemoteObject meta-tag does all the conversion work for
    me. We are now using the Granite DS package and it is working well
    for us. I would love to consume web services, but it just isn't
    worth the hassle when all you have to do with Granite (and FDS) is
    cast your return objects to the proper object type.
    BTW, since this posting, I have investigated competing Flex
    app frameworks. After my research, I checked out the PureMVC
    framework. Wow!! Cairngorm always left me with an uneasy feeling
    and I guess I am not alone. Apparently, Cliff Hall felt the same
    way. That is why he started the project. I like his approach alot
    more than Cairngorm especially since it includes notifications
    which allow me to broadcast my own app level events independent
    from the AS Event framework. Check out PureMVC. For what it is
    worth, it has my humble endorsement. Cliff was even gracious enough
    to acknowledge the other Adobe Consulting guys for their work. Good
    for you Cliff, I respect that. Check out a better way at
    http://www.puremvc.org/

  • Error when importing Web Service Model

    Hi,
    I am having trouble importing a Web Service model into my Web Dynpro component.
    I have successfully published my SessionBean method as a Web Service which works correctly when used from the Web AS Web Service Navigator.
    However, my Web Dynpro cannot correctly create a model from the WSDL. The problem seems to be with the last parameter of the method, a two-dimensional array of Strings. When importing the web service model, the following line of code get created in the respective Model class:
    logicalPort.generateMetadata(this.getKeywordsAsArray(), this.srcLang, this.getTgtLangAsArray(), ERROR no prop = parameters
    Obviously there is a problem with the code generation for the last parameter (the two-dimensional array) which results in this "ERROR no prop = parameters" message.
    Does anyone have an idea what I might be doing wrong? Is there a problem with multidimensional arrays in Web Dynpro model classes? I originally wanted to use a HashMap but naturally had to use a simple data type - any other ideas for a workaround?
    Cheers,
    Tim

    Hi,
    First, can you check whether you able to access your web service url in browser?
    or
    you can test your webservice from the NWDI Web service perspective, here you can test your web service is correctly functioning or not before using in your Web Dynpro application.
    This document clearly explains How to test the web service url and what is the correct procedure to consume the web service in SAP portal.
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b07992b3-b5af-2a10-9886-affcbeccc4c9]
    [http://help.sap.com/saphelp_nw70/helpdata/en/f4/1a1041a0f6f16fe10000000a1550b0/content.htm]
    Regards
    Raghu

  • Problem with importing Web Service Model

    Hello,
    in my Web Dynpro project I try to import a web service model.
    After choosing the wsdl file the different classes and files are generated but in the Web Dynpro Explorer there is no Model created in the Node Models. Also after reloading and rebuilding the project no model appears.
    In the source folders the generated files exist.
    Does anybody have an idea for solving this problem?
    Cheers, Dennis

    Hi Dennis,
    Restarting your NWDS will bring you the newly created model.
    Thanks,
    Venkat

  • Web Dynpro Import Web Service Model - not a valid NCName

    Hi people,
    We are having a problem while importing a WSDL as an Adaptive Web Service Model in Web Dynpro (CE 7.2 SP03).
    The error is the following:
    "Definition of qualified base /schema/element[5]/complexType/sequence/element[4] is not correct. The value of property is not a valid NCName."
    We tried importing the same WSDL in other tools (XML Spy and SOAP UI). With these tools it could be read without errors and were able to successfully call the service.
    The point is, why the import fails in Web Dynpro if the WSDL can be read in other tools ? Can we do something in WD to import the WSDL that is supposed to be "not correct" ?
    Thanks in advance for your comments,
    Daniel

    Hi Pranav,
    I was facing this issue sometime back and i figured out that the ABAP proxy namespace in my case had a '/' in it, because of which the internal name of the service had a '/' character too.
    And this was unacceptable for the endpoint binding name in my case.
    Since it is occuring for you in case of the service name (i figured it out from attribute definations/services@name), check if the proxy name have a special character like '/'.
    Regards,
    Vivek

  • About import web service model in web dynpro dc

    Hi all,when i import a web service model in web dynpro dc, an error occurs.
    java.lang.Exception: com.sap.tc.webdynpro.model.webservice.modeltype.core.implementation.AWSModelImporter$FatalImportException: Model setting definition 'considerNillable' not defined for Adaptive Web Service model type
         at com.sap.tc.webdynpro.model.webservice.modeltype.service.AWSModelImporterService.createModel(AWSModelImporterService.java:67)
         at com.sap.tc.webdynpro.model.webservice.modeltype.ui.wizard.AWSModelCreationWizard.createModel(AWSModelCreationWizard.java:238)
         at com.sap.ide.cmi.core.model.importer.CMIWizard$3.run(CMIWizard.java:246)
         at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
    Caused by: com.sap.tc.webdynpro.model.webservice.modeltype.core.implementation.AWSModelImporter$FatalImportException: Model setting definition 'considerNillable' not defined for Adaptive Web Service model type
         at com.sap.tc.webdynpro.model.webservice.modeltype.core.implementation.AWSModelImporter.setModelSetting(AWSModelImporter.java:174)
         at com.sap.tc.webdynpro.model.webservice.modeltype.core.implementation.AWSModelImporter.importModel(AWSModelImporter.java:632)
         at com.sap.tc.webdynpro.model.webservice.modeltype.core.implementation.AWSModelImporter.doImport(AWSModelImporter.java:351)
         at com.sap.tc.webdynpro.model.webservice.modeltype.service.AWSModelImporterService.createModel(AWSModelImporterService.java:65)
         ... 3 more
    please tell me

    1.Create New Model.
    2.Select the type of model as Adaptive web service model and click next.
    3.Give Model name and Model Package .Select Available WSDL sources.
       a.If u get wsdl from local system,select Remote Location/File system.
       b.If u get wsdl from Sap location ,u have to configure with esr reposirtry.
    4.Select Remote Location/File System and click next.Get WSDL URL from services repositry and click next.
    5.Click finish.

  • "Import Web Service Model" meets IO exception.

    Hi all,
    I'm trying to import a Web Service Model through tutorial on NWDS version 2.0.9.
    Accident occurs: After the importing process, nothing happenes - NO error message, NO imported model under node "Model".
    But when I do the same thing on my colleague's computer, the model is correctly imported. Actually our computers have the same NWDS version.
    I tried many times. It is always failure on my computer. And even I re-install NWDS, still the same problem.
    I checked the log, which contains such an exception:
    !MESSAGE com.sap.engine.lib.xml.util.NestedException: IO Exception occured while parsing file:Cannot connect to http://webservices.matlus.com/scripts/emailwebservice.dll/wsdl/IemailService: Connection timed out: connect -> java.io.IOException: Cannot connect to http://webservices.matlus.com/scripts/emailwebservice.dll/wsdl/IemailService: Connection timed out: connect
    !STACK 0
    com.sap.engine.lib.xml.util.NestedException: IO Exception occured while parsing file:Cannot connect to http://webservices.matlus.com/scripts/emailwebservice.dll/wsdl/IemailService: Connection timed out: connect -> java.io.IOException: Cannot connect to http://webservices.matlus.com/scripts/emailwebservice.dll/wsdl/IemailService: Connection timed out: connect
    *     at com.sap.engine.services.webservices.tools.WSDLDownloadResolver.resolveEntity(WSDLDownloadResolver.java:129)*
    *     at com.sap.engine.services.webservices.wsdl.WSDLImportTool.loadDocument(WSDLImportTool.java:151)*
    *     at com.sap.engine.services.webservices.wsdl.WSDLImportTool.downloadWSDL(WSDLImportTool.java:725)*
    *     at com.sap.ide.ws.proxygenerator.InternalHelperFunctions.downloadWSDL(InternalHelperFunctions.java:255)*
    *     at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateProxy(ProxyGeneratorWrapper.java:334)*
    *     at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateStandAlone(ProxyGeneratorWrapper.java:271)*
    *     at com.sap.ide.metamodel.importers.webservice.GenerateWS.doGenerate(GenerateWS.java:92)*
    *     at com.sap.ide.metamodel.importers.webservice.WebServiceModelImporter.doImport(WebServiceModelImporter.java:116)*
    *     at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard$6.run(ModelWizard.java:819)*
    *     at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)*
    *     at com.sap.engine.services.webservices.wsdl.WSDLImportTool.loadDocument(WSDLImportTool.java:168)*
    *     at com.sap.engine.services.webservices.wsdl.WSDLImportTool.downloadWSDL(WSDLImportTool.java:725)*
    *     at com.sap.ide.ws.proxygenerator.InternalHelperFunctions.downloadWSDL(InternalHelperFunctions.java:255)*
    *     at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateProxy(ProxyGeneratorWrapper.java:334)*
    *     at com.sap.ide.ws.proxygenerator.ProxyGeneratorWrapper.generateStandAlone(ProxyGeneratorWrapper.java:271)*
    *     at com.sap.ide.metamodel.importers.webservice.GenerateWS.doGenerate(GenerateWS.java:92)*
    *     at com.sap.ide.metamodel.importers.webservice.WebServiceModelImporter.doImport(WebServiceModelImporter.java:116)*
    *     at com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelWizard$6.run(ModelWizard.java:819)*
    *     at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)*
    Caused by: java.io.IOException: Cannot connect to http://webservices.matlus.com/scripts/emailwebservice.dll/wsdl/IemailService: Connection timed out: connect
    *     at com.sap.engine.services.webservices.tools.WSDLDownloadResolver.resolveEntity(WSDLDownloadResolver.java:129)*
    *     at com.sap.engine.services.webservices.wsdl.WSDLImportTool.loadDocument(WSDLImportTool.java:151)*
    *     ... 8 more*
    Actually I can connect successfully to the WebService through IE. How does this occur?
    Does anyone have such experience?
    Thanks in advance.
    Edited by: gangtee gangtee on Jan 9, 2008 5:36 AM

    Hi Gangtee,
    Are you working inside a secured network, if yes please check the proxy settings which are shown while NWDS installation.
    Regards
    Sid

  • Java stored proc from proxy Java classes generated from a web service?

    Hi gurus,
    I have searched "Java Stored Procedure" on this forum but could not find what I am looking for, so I have to post again.
    I need to use a web service and my client app is written in PowerBuilder 11 (Sybase), which claims that it will create a datawindow from a web service. Well, it turned out that PB can only handle simple stuff (it works with a very simple wsdl from the internet) but can't handle more complex ones that we need to use. So I am thinking about using Oracle JDeveloper(JDev) to create the web service proxy for the web service and then load it into Oracle as a Java stored procedure so that PowerBuilder can call the procedure. JDev succsfully generated the proxy and a few Java classes. My question is, do I need to load all the classes into the database? If yes, will the reference to the package work? For example, in a JDev generated class (the soap client class), it has package MyJdev.proxy; at the top. Or, will it work if I load all the classes included in package /MyJdev/proxy into the database?
    Thank you very much for any help.
    Ben

    For the java stored proc called from pl/sql, the example above that uses dynamic sql should word :
    CREATE OR REPLACE PACKAGE MyPackage AS
    TYPE Ref_Cursor_t IS REF CURSOR;
    FUNCTION get_good_ids RETURN VARCHAR2 ;
    FUNCTION get_plsql_table_A RETURN Ref_Cursor_t;
    END MyPackage;
    CREATE OR REPLACE PACKAGE BODY MyPackage AS
    FUNCTION get_good_ids RETURN VARCHAR2
    AS LANGUAGE JAVA
    NAME 'MyServer.getGoodIds() return java.lang.String';
    FUNCTION get_plsql_table_A RETURN Ref_Cursor_t
    IS table_cursor Ref_Cursor_t;
    good_ids VARCHAR2(100);
    BEGIN
    good_ids := get_good_ids();
    OPEN table_cursor FOR 'SELECT id, name FROM TableA WHERE id IN ( ' &#0124; &#0124; good_ids &#0124; &#0124; ')';
    RETURN table_cursor;
    END;
    END MyPackage;
    public class MyServer{
    public static String getGoodIds() throws SQLException {
    return "1, 3, 6 ";
    null

  • 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.

  • 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]

  • 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

  • Web Service Process does not translate 2nd parameter object

    Hi,
    I have a a web service that has 3 paramaters.
    Param 1 = string
    Param 2 = custom object
    Param 3 = same custom object
    When I create the web service process it correctly translates Param 2 into the object items. i.e. int, string, boolean, string, date, int, date etc. However Param 3 remains as an object!
    I have found a workaround for this by creating a 2nd object class which has exactly the same items as the original object and this works fine, however, this cannot be the correct way to do it as now I have 2 objects classes that are a copy of each other. Anyone have any ideas how to get the 3rd parameter to split into it's parts?
    Thanks,
    Fred

    I'm getting the same error.
    Type mismatch: cannot convert from short[][] to short[]
    ComplexType_Carton.java
    and...
    The method setNumeroscarton(short[][]) in the type Carton is
    not applicable for the arguments (short[])
    ComplexType_Carton.java     
    Steps to recreate the problem:
    1. Create and Expose webservice method with a parameter whose type has a short[][] (or bidimensional array of anything) field (property).
    2. Try to import the web service in web dynpro... <b>kaputt</b> it won't compile.
    <b>Seems like a bug to me. Someone please advice.</b>

  • Business Tier / Web Services / Web Services Proxy does not exists

    Hi,
    from the documentation:
    'To call a web service from an application module, you perform three steps:
    1. Create a web service proxy class for the web service.
    2. Create an instance of the web service proxy class in your application module.
    3. Invoke one or more methods on the web service proxy object.'
    The web service proxy is supposed to be under 'New / Business Tier / Web Services / Web Services Proxy', but all I have in the item-list is the 'UDDI Registry Connection', no 'Web Services Proxy'. Does anyone know how to get the 'Web Services Proxy' as an item in the Web-services gallery ?
    I'm running JDeveloper 10.1.3.3.0 Studio Edition.
    Regards
    Erik

    Oh boy. Nope. But I did now ! And there it is, just like magic...
    I totally overlooked that field. Thanks, I am a bit new to this, needless to say !
    Regards
    Erik

  • 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 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

Maybe you are looking for