SAP Webservice: None of the policy alternatives can be satisfied

2016-09-15 Thread MRneedHelp
Hi, i´m new to CXF and trying to connect to a SAP Webservice. I use the newest cxf version 3.1.7. I have the WSDL from the webservice and generated code with wsdl2java. I should update a program from Axis2 to CXF. But when i start the standard client (genarted with wsdl2java) i get a "SOAPFaultEx

Re: SAP Webservice: None of the policy alternatives can be satisfied

2016-09-19 Thread MRneedHelp
Hi, thanks for the answers. I think your solution would be the best, mbeards. These policies are really upsetiing me... I have solved it now with a HttpURLConnection, with which i send the request as a xml and get the response as a xml (as it is in SOAP UI). Here the policies are no problem... w

Re: SAP Webservice: None of the policy alternatives can be satisfied

2016-09-21 Thread MRneedHelp
Hi, still trying to get cxf working. That can´t be an unsolvable problem... So there are a few things, that i noticed. The URL in SOAP UI differs from the URL of the wsdl in my Webbrowser. So which URL should I use? So, from the beginning: I generated the java code with wsdl2java again (command:

Re: SAP Webservice: None of the policy alternatives can be satisfied

2016-09-21 Thread MRneedHelp
Maybe this helps to solve the problem. A xml request from SOAP UI: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style"> and an example response: http://schemas.xmlsoap.org/soap/envelope/";>

Re: SAP Webservice: None of the policy alternatives can be satisfied

2016-09-21 Thread MRneedHelp
When I use logging, I get this message: INFORMATION: Outbound Message --- ID: 1 Address: wsdl-addres from SOAP UI Encoding: UTF-8 Http-Method: POST Content-Type: text/xml Headers: {Accept=[*/*], SOAPAction=["urn:sap-com:document:sap:soap:functions:mc-style:PERSONALINFO:GetP

RE: SAP Webservice: None of the policy alternatives can be satisfied

2016-09-21 Thread MRneedHelp
Hi, finally cxf is running. :D I compared the actions in SOAP UI and CXF request, but they were the same. So i tried to modify the cxf request manually and found this post: http://stackoverflow.com/questions/6915428/how-to-modify-the-raw-xml-message-of-an-outbound-cxf-request

Re: SAP Webservice: None of the policy alternatives can be satisfied

2016-09-21 Thread MRneedHelp
WOW, you are right Thats, the code I used... GETPERSONALINFO port = (GETPERSONALINFO) factory.create(GETPERSONALINFO.class); System.out.println("Invoking GetPersonalinfo..."); TableOfPersonalinfo etDataVal = null; javax.xml.ws.Holder etData = new javax.xml.ws.Holder(etDataVal); port.GetPersona

Unmarshalling Error: unexpected element

2016-09-23 Thread MRneedHelp
Hi, now that I have cxf working, i tried to play around with it a bit. I got the following exception, when I deleted one attribute of my response class from server: Unmarshalling Error: unexpected element (URI:"", lokal:"Uname"). expected elements are <{}Vorna>,<{}Street>,<{}KostlTxt>,<{}Gbdat>,<

Re: Unmarshalling Error: unexpected element

2016-09-23 Thread MRneedHelp
Thank you, it was not as complicated as intended. I took the MyCostumHandler from https://issues.apache.org/jira/secure/attachment/12614586/apacheCXF-trunk-CustomMarshallingEventValidator.patch