XmlMarshalException on using XI generated Webservice with WebDynpro

Hi,
i have a problem creating a WebDynpro application using a WebService model created by XI.
When executing the service:
public void onActionGO(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionGO(ServerEvent)
try {
wdContext.currentRequest_MI_BESCHAFFUNG_MI_BESCHAFFUNGElement().modelObject().execute();
wdThis.wdFirePlugToMIBeschaffungResultView();
catch (Exception e) {
wdComponentAPI.getMessageManager().reportException( e.getLocalizedMessage(), false );
//@@end
I get the following error message:
Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlMarshalException: XML Serialization Error. Property [DATA] of class [de.gisa.mibeschaffung.model.proxies.types.RFC_READ_TABLE] must exist and can not be null. This is required by schema description.
The classes generated by the WSDL import are prefixed by ComplexType. So could this be the culprit here? Also the generated classes are in the de.gisa.mibeschaffung package not in the de.gisa.mibeschaffung.model.proxies.types package.
I appreciate your input!
regards
Dirk

How do you suggest converting those inputs?
Using a Netweaver Developer Studio generated model (from a
WSDL description in turn generated by XI) should shield one from the actual programming tasks required to do that.
Am i mistaken about that?

Similar Messages

  • Jdeveloper 11g : Generating webservices with streaming attachments support

    Hi,
    We are trying to create a Java Webservice with support for streaming attachments. In 10g we are using the Attachments API from the oracle.webservices.attachments package.
    In Jdev 10g we were doing it the following way:
    public String getXMLFile(String name,String fileName,Attachments atts) throws RemoteException
    try
    AttachmentFactory factory = AttachmentFactory.newInstance();
    Attachment imageAtt = factory.createAttachment(fileName, "text/plain", new FileInputStream(fileName));
    atts.getOutgoingAttachments().addAttachment(imageAtt);
    } catch (Exception e) {
    System.out.println(e.getMessage());
    return "Hello " + name;
    This webservice is deployed in Oracle AS.
    How do we do it in Jdev 11g and we want to deploy the service in WLS 10.1.3. If we try to create a webservice over this class in Jdev 11g we get the error :"no-arg default constructor not present".
    Any pointers would be highly appreciated.
    Thanks and Regards,
    Pritom

    Hi Vishal,
    I created the class as mentioned in the link. But when I try to test the web service, I get the following error :
    weblogic.application.ModuleException: [HTTP:101216]Servlet: "oracle.apps.ddr.testFileDownload" failed to preload on startup in Web application: "Application7-Project1-context-root".
    javax.xml.ws.WebServiceException: Annotation @com.sun.xml.internal.ws.developer.StreamingAttachment(parseEagerly=true, dir=, memoryThreshold=40000) is not recognizable, atleast one constructor of class com.sun.xml.internal.ws.developer.StreamingAttachmentFeature should be marked with @FeatureConstructor
         at com.sun.xml.ws.binding.WebServiceFeatureList.getWebServiceFeatureBean(WebServiceFeatureList.java:176)
         at com.sun.xml.ws.binding.WebServiceFeatureList.parseAnnotations(WebServiceFeatureList.java:148)
         at com.sun.xml.ws.binding.WebServiceFeatureList.<init>(WebServiceFeatureList.java:113)
    Any ideas on how I can make it work ?
    Thanks and Regards,
    Pritom

  • How do i use r/3 webservice with sneak preview (7.0.9) of developer studio.

    Hi,
        I am having a problem importing an r/3 webservice using adaptive rfc in the sneak preview edition of java NW2004s (7.0.9).
    the webservice requries http authentication to get the wsdl file. so i have to use webservice destinations when creating my adaptive rfc model (to get the username and password boxes on the URL )
    So the steps i take are :-
    1. New Model
    2. import adaptive webservice model
    3. enter model name and package
    4. local file system or url
    5. Use destinations for metadata and execution & enter web service destinations (in my case 'meta' and 'exec')
    6. enter wsdl location (http://-hostname-/sap/bc/srt/rfc/sap/Z_DSKTP_USR?sap-client=200&wsdl=1.1&mode=sap_wsdl)
    7. enter username and password. & click next
    ... at this point i get 'Error loading the WSDL file'. the log shows that this due to a 401(unauthorized) error.
    when i follow the same steps in 6.0.19IDE  (instead of 7.0.9 IDE) it works fine.
    i used a packet sniffer (ethereal) to record the network traffic and can see the Authorization header is not sent from the 7.0.9 IDE  but is sent in the 6.0.19 IDE .
    so i think this is a bug in the sneak preview version of the 7.0 IDE. and i am just wondering what other people think? has anyone else seen this? anyone know of a patch or work around? or seen any sap notes about it?
    i am just using this to evaluate webservices and am not really worried about authentication anyway so i guess the other option is to try to make r/3 not use http authentication for the webservice app? does anyone know how to do this?
    any help greatly appreciated.
    regards,
    rob munro.
    Message was edited by:
            robert munro

    Sorry, but i do not understand this post at all... Can anyone explain it to me? Is he saying my IDE is running on something other than Unicode?
    PS: I tried one of the Scanner constructors that takes a charset parameter. That fixed the odd output! However, every Chinese character has been replaced with a question mark. (It was a series of weird characters before i used the constructor with a charset parameter.)

  • How to use JAXB generated classes with SOAP

    hello,
    I have a library of JAXB generated classes for my web service. There is a Java class for each web method defined in my schema. For example, my getLocation method is mapped to GetLocation.class.
    However my web service is SOAP based, so I am having to manually strip off the SOAP elements to be able to unmarshall the getLocation xml to a GetLocation class.
    I am noticing a disconnect between JAXB and other Java SOAP and RPC libraries. Does anyone know how to create a JAXB class for SOAP Envelopes and Bodys? Does anyone have any ideas how to incorporate the existing Java web service libraries with JAXB?
    Thanks in advance.

    Have you found a method to integrate SAAJ and JAXB? Or
    is better to use SAAJ only ?If I had to choose I'd go with SAAJ. It seems to me that's theoretically possible to use JAXB classes with SAAJ but I imagine if it is possible it would be a big pain in the ass.

  • Using CreateObject for Webservice with username and password

    When using createObject() to call a web service how do I pass
    in the user name and password required by the service?
    If I do a cfdump on the webservice object I see it has
    setUserName() and setPassword() methods but they don't seem to be
    working.
    I also see there are properties named "USERNAME_PROPERTY" and
    "PASSWORD_PROPERTY" but I can't seem to modify them in code. I
    suppose they are protected.
    example:
    ws = createObject("webservice", "
    http://url.to/wsdl.xml",
    "serviceport");
    ws.setUserName("myawesomeusername");
    ws.setPassword("myawesomepassword");
    myReturn = ws.serviceMethodCall("bla");

    quote:
    Originally posted by:
    MACRStockHolder
    For anyone that encounters the same issue/question;
    apparently you can't apply a username/password to the object call
    like you can when using <cfinvoke> to make a web service
    call.
    FYI Adobe: this is VERY limiting, I have to use a web service
    that uses in/out parameters which to the best of my knowledge
    requires the use of createObject() but at the same time the web
    service requires a username and password which I can only do with
    <cfinvoke>. Looks like I will be writing a compiled custom
    tag just for a workaround.
    According to the docs you can provide a username and password
    by passing a struct containing these items to CreateObject
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_c-d_18.html#45 14398
    If you like cfinvoke use it. You can get return values by
    using the returnVariable argument. I would assume mutliple output
    parameters would be returned in a struct.
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_i_10.html#4001127

  • Reg using the GP APIs with webdynpro applications

    Hi Experts,
    I have been implementing webdynpro appln using GP APIs as a callable object in my application. In my webdynpro application i have been using RFCs to access data from the R/3 system.
    Are there any setting I need to do in Guided Procedures (portal) to run the application in portal.
    Can any one of you explain me regarding what are all the setting i need to do from the Guided Procedures perspective while using callable object that interact with an R/3 system?
    Also, I would be grateful for any other valuable suggestions from you regarding implementing webdynpro appln using GP APIs as a callable object.
    Thank You.
    Regards,
    Murthy J N.

    Please follow the below links for Webdynpro Development with Guided Procedures :
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/50d74ada-0c01-0010-07a8-8c118d408e59
    https://www.sdn.sap.com/irj/sdn/xapps?rid=/library/uuid/73cc8084-0b01-0010-1788-b2304424605a
    Hope it helps.
    Regards,
    Shikhil

  • How use video generator ni5431 with visual c++

    i use a ni5431 video generator with visual c++.
    i generate a ccir signal and i want to modify attributes IMAGE_TOP, IMAGE_HEIGHT and IMAGE_WIDTH. When i change one of these attribute with VDG_SetAttribute(****,int) i can't obtain a signal.
    Thank you for your help.

    Proably the reason this question has gone so long without an answer is that the Vision forum only covers our NI Image Acquisition hardware (along with all NI Vision software), and not our signal generator hardware. That hardware is covered in the Signal Sources forum under the Measurment Hardware section, which is serviced by a different set of Enthusiasts and experts. If you ask your questions there, you should get a quick response.

  • Generating Webservice using HTTPS in  XI.

    Hi Experts,
         I have generated webservice in XI using http , and i have tested using infopath soap client, its working fine.  I have generated webservice in XI using htpps using the same scenario,  when i am testing using infopath as soap client and tested, its giving error, request is not hitting the XI system at all. do i need to configure any certificate in infopath or in XI server, please can anyone advice. i have configured HPPTS without client authentication in SOAP adapter.
    Thanks,
    Dhanush

    Hi Experts,
      I am not able to get exact answer after reading the sap.help.com, sap notes.
    My scenario is RFC < ---> SOAP ( webservice) ,  i have generated webservice with the HTTPS and secured port of XI,  When i copy and past in IE browser, its showing status is OK,  but request is not hitting the XI system. what are things to be taken care at soap client and XI server side, do i need to install any certificats at client side or server side. please advice me.
    Thanks,
    Siva

  • Consuming Webservice in WebDynpro - Content-Type issue

    Hi,
    I am getting a shortdump when consuming WebService in WebDynpro.
    I trace it back to the class CL_SOAP_HTTP_TPBND_ROOT method GET_HTTP_HEADERS whereby the
    value = 'text/html; charset=iso-8859-1' while the constants tsrc_soap_11_http_content_type = 'text/xml' ; tsrc_soap_bx_http_content_type = 'application/x-sap-bxml' ; tsrc_soap_mtom_http_cont_type = 'application/xop+xml' ; tsrc_soap_mp_http_content_type = 'Multipart/Related'. Because of this Content-Type difference my WebDynpro application dumps?
    Any ideas how to solve this problem?
    Thanks.
    Regards,
    Amel

    hi,
    Few indroductory sessions
    /people/thomas.jung/blog/2007/12/17/consuming-services-with-abap -Consuming webservices with webdynpro.
    It is possible to create webservice in ABAP as well as in Webdynpro.
    ABAP Webservice:
    http://wiki.open-esb.java.net/Wiki.jsp?page=BAPIWEBSERVICE
    http://www.sappro.com/downloads/SAPXI.pdf
    Webdynpro Webservice:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/244e7923-0a01-0010-5887-fe0b0c6dbb8d
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/db785a70-0701-0010-858c-eee0ec4fe1b3
    In Web Dynpro ABAP there is nothing special about calling a web service. Unlike WD Java, there are not dedicated model object types in WD ABAP. WD ABAP simply has the ability to interact with other ABAP development object types. You can call function modules, ABAP classes, even modules in old dynpro apps.
    So calling the webservice from ABAP therefore is just the process of generating the ABAP Proxy Class. This is the same process regardless of if you want to use this proxy class from WDA or any other type of ABAP development object. You can then call the proxy class from WDA just like any other type of ABAP class. There is a service wizard option in later support package levels that includes an option for ABAP Proxy classes - although it doesn't generate the proxy class it just generates the code and context for the call to an already existing proxy class. The service wizards in WD ABAP are not required however. They are just shortcut code generators and often can't even generate a complete context for a complex web service proxy - so expect to do some manual adjustment after running the wizard.
    Edited by: Mahalakshmi kothuri on Jun 1, 2008 4:17 PM

  • Calling webservice from webdynpro thru model(webservice created from BAPI)

    Hi all
    i have created one webservice from Functional module in backend system(ECC) and also i released the same webservice in backend(ECC) thru the TCODE wsconfig.
    my questions are
    1) how to execute that created Webservice in backend system itself(ECC). can you please send the execution steps for webservice in ECC system.
    2)  how to call from webdynpro thru model for that created webservice from functional module. can you please send the execution steps for the same. here there are three options while model for webservice like local server,Local file system and UDDI or URL.
    Regards
    Sunil
    [points are always rewardable]

    hi!
    Below are good documents on Webservices
    Adaptive webservice model
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/900bbf94-a7a8-2910-e298-a651b4706c1e
    Re Importing of Web Services in Simpler way
    Re Importing of Web Services in Simpler way
    Using RFC as WebService in WebDynpro
    Using RFC as WebService in WebDynpro
    Enterprise Applications with webservices and Web Dynpro
    The specified item was not found.
    Regards
    vishal

  • Extending TaskOutput for a Human Activity with WebDynpro UI

    Dear Experts,
    For my process I need to change some data object values in my context using WebDynpro UI. For that I would typically use a Human Activit with WebDynpro and some output mappings on
    TaskOutput->UIResponse->MyTaskCompleteEvent->xxx.
    But in my case I don't want to close the task. I want to use a different Event for the mapping without completing the task. Something like:
    TaskOutput->UIResponse->MyTaskChangeContextEvent->xxx
    But I couldn't find a way to extend the TaskOutput and UIResponse to be able to use other custom events for output mapping.
    I would appreciate any help.
    Thanks,
    Koray
    Edited by: korayyersel on Aug 19, 2011 9:49 AM

    Ok, you can not update the BPM context without completing the task. You can have temporary data store in CAF (with default data source or external data source) and you can store/retrieve the data temporarily using JPA (Java Persistence API).
    You can refer the below link for more details: http://help.sap.com/saphelp_nwce72/helpdata/en/47/d67d5357a34ac5e10000000a42189d/content.htm
    http://help.sap.com/saphelp_nwce72/helpdata/en/4a/9e7b9845816c3de10000000a42189c/content.htm
    So you can call EJB/Web Service from WD task to save the changes and when user reopens the task you can retrieve the data from DB and show to it to the user.
    Thanks
    Abhilash

  • Wsdl problem with jwsc generated webservice

    Hi,
    I am generating a new webservice with the jwsc command and annotations (only one method at this point, "getDescripteurCourt"). The war file is correctly generated and I can deploy it without problenmes in WLS 10.0
    However, when use the webservice test page, I receive the following error
    http://localhost:7001/communWS/communwebservices?WSDL
    failed due to org.jdom.IllegalAddException: The namespace xmlns:="http://saac.ssq.local/commun" could not be added as content to "getDescripteurCourt": The namespace prefix "" collides with the element namespace prefix
    Here is my wsdl file generated by the jwsc command
    <?xml version='1.0' encoding='ISO-8859-1'?>
    <s0:definitions name="communwebservicesDefinitions" targetNamespace="http://saac.ssq.local/commun" xmlns="" xmlns:s0="http://schemas.xmlsoap.org/wsdl/" xmlns:s1="http://saac.ssq.local/commun" xmlns:s2="http://schemas.xmlsoap.org/wsdl/soap/">
    <s0:types>
    <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://saac.ssq.local/commun" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="getDescripteurCourt">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="nomPhysique" type="xs:string"/>
    <xs:element name="codeValeur" type="xs:string"/>
    <xs:element name="env" type="xs:string"/>
    <xs:element name="lang" type="xs:string"/>
    <xs:element name="owner" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="getDescripteurCourtResponse">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="return" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    </s0:types>
    <s0:message name="getDescripteurCourt">
    <s0:part element="s1:getDescripteurCourt" name="parameters"/>
    </s0:message>
    <s0:message name="getDescripteurCourtResponse">
    <s0:part element="s1:getDescripteurCourtResponse" name="parameters"/>
    </s0:message>
    <s0:portType name="communwebservices">
    <s0:operation name="getDescripteurCourt" parameterOrder="parameters">
    <s0:input message="s1:getDescripteurCourt"/>
    <s0:output message="s1:getDescripteurCourtResponse"/>
    </s0:operation>
    </s0:portType>
    <s0:binding name="communwebservicesSoapBinding" type="s1:communwebservices">
    <s2:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <s0:operation name="getDescripteurCourt">
    <s2:operation soapAction="" style="document"/>
    <s0:input>
    <s2:body parts="parameters" use="literal"/>
    </s0:input>
    <s0:output>
    <s2:body parts="parameters" use="literal"/>
    </s0:output>
    </s0:operation>
    </s0:binding>
    <s0:service name="communwebservices">
    <s0:port binding="s1:communwebservicesSoapBinding" name="communwebservices">
    <s2:address location="http://localhost:7001/commun/communwebservices"/>
    </s0:port>
    </s0:service>
    </s0:definitions>
    Can anyone help me with this? I dont understand where this exception is coming from.
    I you need more informaion, just ask I will be glad to provide you more details.
    Thank you very much
    Jean-Philippe Leblond

    webservice.operation.lastResult["return"];
    If you are doing that in a result handler, do not use
    lastResult, which is intended for binding espressions only. Use
    event.result.
    Tracy

  • PLSQL webservice with use of explicit XSD

    We do have a PLSQL package that returns information of a certain collection type. If we generate a webservice for this PLSQL packages the generated WSDL contains a generated schema (XSD) that contains some cryptic complex type names. Our clients would like to use an explicit XSD, with more additional information on the attributes (e.g. max-length) and more logical type and element names. Is there a way to adjust the generates webservice files to make use of, or represent the external XSD?

    Just found the following information:
    Re: PL/SQL Webservice and XMLType return and xsd mapping
    which helped me a little bit. But after importing the XSD into the WSDL and trying to deploy, JDeveloper tells me there's a compilation error, and nothing else. Since I can't find a way of it to give me more info about this error, I try to run it locally, and this happens:
    Error instantiating web-application
    Error compiling :E:\jdevstudio10133\jdev\mywork\incexc\ws\public_html: Syntax error in source or compilation failed in: E:\jdevstudio10133\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\application-deployments\current-workspace-app\incexc-ws-webapp\sirc\runtime\InicialElement_LiteralSerializer.java E:\jdevstudio10133\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\application-deployments\current-workspace-app\incexc-ws-webapp\spcdes\runtime\IncexcSoapHttp_Tie.java:59: error #300: method inicial(sirc.InicialElement) not found in interface spcdes.Incexc
    ((spcdes.Incexc) getTarget()).inicial(myInicialElement);
    ^
    Is this related to types being different among the auto-generated files and the wsdl? What else do I have to edit to get it working? Before someone directs me to google again, I already went there and it directed me back here:
    Regenerating webservice from pl/sql package (error)
    which so far is a dead end.
    Any thoughts? I'd really like to know what options should I pick before generating the Webservice from the PL/SQL, considering how I'll import the xsd into the wsdl later. Is there any prior type mapping involved, should it be document literal, anything?
    Thanks.

  • Flex with webdynpro for java using Flex Island

    Hi Friends,
    I am on Netweaver/SAP Enterprise Portal 7.0 SPstack12, I am developing UI for BI reports using VC, I am interested in developing UI using flex and want to integrate those apps with EP, I came to know flux Island supports flux with webdynpro java,  basically I am a webdynpro for java developer, I want to develop flux applications with webdynpro for java in NWDS. And i want to know how to use Flex Island with webdynpro for java. So could u please post some useful links.
    Thank in advance
    Regards
    samba

    Hi
    If you want to try out using ADOBE Flash Islands with WDJ, you would need to download SAP CE 7.1 EhP1 trial version, if not done so already.
    The following link may help you in building the WDJ component with Flash Islands..
    The specified item was not found.
    If you donot want to develop the Flex project you can download the .swf file provided by the SAP mentors:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/10989ef6-968c-2b10-50a9-eb34a5267163
    Thanks.
    Chitrali

  • Can I use AWT elements in a JSP, and so could I generate events with them?

    This is because I�m doing a simple JSP that showing a button, my JSP is:
    <html>
    <%@ page import="java.awt.*" %>
    <%! Button b = new Button("Hola!!!"); %>
    <% add(b); %>
    </html>
    But when I tried to see the button in the browser, my JSP generates the following:
    Compilation of '/RAID5/weblogic/myserver/classfiles/jsp_servlet/_gep/_alterno/_23_mayo/__mr4.java' failed:
    /RAID5/weblogic/myserver/classfiles/jsp_servlet/_gep/_alterno/_23_mayo/__mr4.java:79: cannot resolve symbol
    probably occurred due to an error in /gep/alterno/23_mayo/mr4.jsp line 7:
    <% add(b); %>
    Could somebody help me please?.....
    Can I use AWT elements in a JSP, and so could I generate events with them?
    Thanks!!!

    There are 2 ways to run a web page dynamically:
    1) Reload the page via use of javascript or some other scripting language.
    2) Use an applet to regularly check a URL for the data
    Remember, as Paul pointed out, JSP's only generate HTML output. AWT components need to run inside a JVM not a just the browser.
    I could recommend an applet but you may have problems with IE6 not supporting java. Otherwise there shouldn't be too much of a prob.
    If you prefer to use an AWT/Swing setup (for example an application) rather than a JSP setup, Webstart is good for delivering online applications which operate standalone or remotely.
    When you consider that the Java-Plugin and the Webstart puligin are about the same size it's just a matter of weighing up who your target clients are and whats easiest.
    Cheers,
    Anthony

Maybe you are looking for

  • How Can I Get MP3s On My iPad Without Syncing

    While away, without computer/iTunes access, how can I get my husband to send my audio files to my iPad? What alternatives are there to syncing? We've tried Google Drive and emailing...

  • Verizon aircard a solution for desktops in rural area?

    OK, to begin with, I am nearly totally in the dark as far as aircards and Internet service via Verizon is concerned. Having said that, here's my situation: We have moved to a rural area here in Kentucky in which the only Internet service available is

  • ITunes 10.5.3 (3) MP3 Tagging.

    With the latest iTunes 10.5.3 (3) only tagging songs imported using iTunes, if I was to purchase a LP and download the MP3 version as available through the purchase, does this mean I will not be able to tag the songs?

  • Acrobat X Pro - Windows 7 - Missing context menu

    Hi, so I just installed Adobe Acrobat X Pro on a Windows 7 computer and noticed how the context menu "right click" for "Combine PDF files" are missing. Open with Adobe Acrobat X however is there, but when selecting two or more PDF files, this option

  • Release procedure in POs and classes.

    Hi, in SPRO, Logistics - General, Materials Management, Purchasing, Purchase Order, Release Procedure for Purchase Orders, Edit Class, I see a long list of class. If 032 is specific for a release strategy what are the others classes useful for ? Best