ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacques Le Roux" <jacques.le.r...@les7arts.com>
Subject Re: SOAP service in ofbiz fails
Date Thu, 13 Sep 2012 09:48:11 GMT
OK, I fixed the nillable issue at r1384251

Locally I could use the ping service but got a (actually  reassuring)  "unable to find valid
certification path to requested target" 
which is caused by a self signed local certificat (or no valid certificat at all, anyway)

So I tried on a remote server and got this

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
        <pingResponse xmlns="http://ofbiz.apache.org/service/">
                        <std-String value="responseMessage"/>
                        <std-String value="success"/>
                        <std-String value="message"/>
                        <std-String value="PONG"/>

with your request

<?xml version="1.0"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema" >
        <jsx1:ping xmlns:jsx1="http://ofbiz.apache.org/service/" >
                        <jsx1:std-String value="message" />
                        <jsx1:null />
                        <jsx1:std-String value="PING_TEST_BOOYAH" />

Could you confirm it works for you for other services with these changes?



From: "Jacques Le Roux" <jacques.le.roux@les7arts.com>
> There is an error in generated WSDL related to nillable, I will have a look...
> Thanks for report
> Jacques
> From: "Parm Lehal" <parmlehal@gmail.com>
>>I am trying use web-service using netbeans. The JAX-WS SOAP service fails
>> with this error :
>> javax.xml.ws.WebServiceException: Unexpected response element Response
>> expected: {http://ofbiz.apache.org/service/}createProductResponse
>>    at
>> com.sun.xml.internal.ws.client.sei.ResponseBuilder$RpcLit.readResponse(ResponseBuilder.java:603)
>>    at
>> com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:110)
>>    at
>> com.sun.xml.internal.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:78)
>>    at com.sun.xml.internal.ws.client.sei.SEIStub.invoke(SEIStub.java:107)
>>    at $Proxy28.createProduct(Unknown Source)
>> However, if I use xmlrpc, it works fine.  Is there any trick in making
>> JAX-WS web service work or am I missing something? Please, advise.
>> Regards,
>> Parminder Lehal

View raw message