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

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

2016-09-21 Thread Daniel Kulp
You definitely shouldn’t need to do that. Can you post the code at: at com.sun.proxy.$Proxy44.GetPersonalinfo(Unknown Source) at Test.main(Test.java:33) Where you are calling the GetPersonalInfo method should likely just need to have the proper object passed in there. (Assuming the

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

2016-09-21 Thread kupkaj
Just out of curiosity, could you post the exact code which you are using to invoke cxf client in java? I find that hard to believe that xml is being generated incorrectly. Most likely there is something missing in your code. -- View this message in context: http://cxf.547215.n5.nabble.com/SAP-W

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 Andrei Shakirin
help, compare SoapAction in SoapUI and CXF request. Regards, Andrei. > -Original Message- > From: MRneedHelp [mailto:matthias.rudingsdor...@freenet.de] > Sent: Mittwoch, 21. September 2016 13:41 > To: users@cxf.apache.org > Subject: Re: SAP Webservice: None of the policy

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 kupkaj
I'm afraid it doesn't, since we don't see the problematic part - what is flowing through the java client. -- View this message in context: http://cxf.547215.n5.nabble.com/SAP-Webservice-None-of-the-policy-alternatives-can-be-satisfied-tp5772704p5772928.html Sent from the cxf-user mailing list a

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 kupkaj
Hi, in the line factory.setAddress(wsdlAddress); wsdl from soapui is correct one (since you've confirmed it's working). Different results mean differences in requests, so what you could do next is to configure logging on client side and compare messages you are sending from soapUI and your java

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-20 Thread Andrei Shakirin
udingsdor...@freenet.de] > Sent: Montag, 19. September 2016 14:08 > To: users@cxf.apache.org > Subject: Re: SAP Webservice: None of the policy alternatives can be satisfied > > Hi, > > thanks for the answers. I think your solution would be the best, mbeards. > These p

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-17 Thread Andrei Shakirin
Hi, In case if SAP web service doesn't force special headers / security, you can just use generated service interface and set address in the factory explicitly, without using WSDL: JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean(); factory.setAddress("https://mydomain.com/myservice";

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

2016-09-15 Thread mbeards
Hey Matthew, I recently struggled through getting a CXF client connection working with SAP's generated WSDL files... In the end I was lucky. I was able to get the SAP administrator to update the WSDL. There is a configuration screen in the SAP UI when you export an IDOC interface as a web service