Hi Everybody,
i've imported a WebService Model into a WebDynpro Applikation (Sneak Preview II - WAS640).
The WebService needs authentication, but the editor for the Logical Ports does not allow to enter Name and Password. It seems, that the editor also has a refresh problem or maybe a bug. Changing values, saving and reopen the changes (ex. Setting Authentication to "none") doen't work. Also viewing the changes in "lports_1.xml" manually works sometimes only after doing this more than once to see a change.
Furthermore i binded the model to a controller described in the help section and doing some needed changes, because some of the content in the help seems to belong to Sneak Preview I. There's also an old Flight tutorial beside the new one under examples, making a manual JCO Connection on controller init.
At the moment, i get the following error:
<message type="error">Service call exception; nested exception is: com.sap.engine.services.webservices.jaxrpc.exceptions.XmlMarshalException: XML Serialization Error. Object content does not correspond to schema restrictions of type [urn:sap-com:document:sap:rfc:functions][/definitions/types/xsd:schema/xsd:element[1]/xsd:complexType/xsd:sequence/xsd:element/xsd:simpleType].
</message>
Hint: The autogenerated proxy classes consists of two complex types. The WSDL therefore was generated from an SAP 6.20 System, which hosts the WebService. The WebService works well inside a midlet soap request.
I binded the whole request incl. the response and all input and output params to the specified controller.
I used the controller init:
Request_Z_WEBSERVICE_TESTPortType_z_WEBSERVICE_TEST req = new Request_Z_WEBSERVICE_TESTPortType_z_WEBSERVICE_TEST();
wdContext.nodeWebServiceMatAvail().bind(req);
And fired it up with onActionGo:
wdContext.currentWebServiceMatAvailElement().modelObject().execute();
Beside the above error, how can i configure an authenticated webservice (The User and Password) inside a webdynpro?
Wishes: A more updated help would be very helpful. At the moment a lot of things (ex. the shipped examples) are not working because there is not enough documentation how to set up system dependencies (ex sld, webservices, Adobe InteractiveForms). Most of the articles in this forum depend on problems with the example applications and how to get them work. Maybe some of the developers can publish more info to the public.
Thank you for any helpful hint!
Holger Schaefer