You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Alfonso Barreto <ab...@yahoo.com.INVALID> on 2017/03/01 17:25:15 UTC

Re: Problem consuming ofbiz soap services from PHP

Keep looking to solve the problem, I havent found how to add Axis2 on ofbiz, I only find  very old reference on how to do it, and nothing very specific. I can see on the ofbiz that there is an axis2 client part already integrated, but cant find the server part. Any one has a recent reference on how to add it?

Mean time, I tryed to consume the services using a java client, got different error, but I can see the parameters being sent to the server via the Map structure, may be I need to do the same on php with the same structure?
But still have error on the server even sending Map structure, cant see the problem still, will appreciate some ideas
Here is the java code:
package clientesoap;

import org.apache.ofbiz.service.MapEntry;
import org.apache.ofbiz.service.MapKey;
import org.apache.ofbiz.service.MapMap;
import org.apache.ofbiz.service.MapValue;
import org.apache.ofbiz.service.StdString;


public class ClienteSoap {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        
            
        org.apache.ofbiz.service.MapMap myMap2 = new org.apache.ofbiz.service.MapMap();
            myMap2.getMapEntry().add(makeMapEntry("defaultValue", "45.67"));
            myMap2.getMapEntry().add(makeMapEntry("message", "prueba"));
            
            

            javax.xml.ws.Holder<org.apache.ofbiz.service.MapMap> mapMap2 = 
                    new   javax.xml.ws.Holder<org.apache.ofbiz.service.MapMap>(myMap2);    
            
     try { 
           
            testRemoteSoap(mapMap2);
     } catch (Exception ex) {
            ex.printStackTrace();
        }
    }

     private static MapEntry makeMapEntry(String key, String value) {

            StdString keyString = new StdString();
            keyString.setValue(key);

            MapKey mapKey = new MapKey();
            mapKey.setStdString(keyString);

            StdString valueString = new StdString();
            valueString.setValue(value);

            MapValue mapValue = new MapValue();
            mapValue.setStdString(valueString);

            MapEntry mapEntry = new MapEntry();
            mapEntry.setMapKey(mapKey);
            mapEntry.setMapValue(mapValue);

            return mapEntry;
    }
     
     
      private static void testRemoteSoap(javax.xml.ws.Holder<org.apache.ofbiz.service.MapMap> mapMap) {
        org.apache.ofbiz.service.TestRemoteSoap service = new org.apache.ofbiz.service.TestRemoteSoap();
        org.apache.ofbiz.service.TestRemoteSoapPortType port = service.getTestRemoteSoapPort();
        port.testRemoteSoap(mapMap);
    }
    
}


And this is the log on ofbiz
2017-03-01 11:14:59,159 (http-0.0.0.0-80-1) [     ControlServlet.java:145:INFO ] [[[SOAPService] Request Begun, encoding=[utf-8]- total:0.0,since last(Begin):0.0]]
2017-03-01 11:14:59,160 (http-0.0.0.0-80-1) [       VisitHandler.java:233:INFO ] Found visitorId [null] in cookie
2017-03-01 11:14:59,202 (http-0.0.0.0-80-1) [       SequenceUtil.java:338:INFO ] Got bank of sequenced IDs for [Visitor]; curSeqId=10440, maxSeqId=10450, bankSize=10
2017-03-01 11:14:59,284 (http-0.0.0.0-80-1) [    ConfigXMLReader.java:184:INFO ] controller loaded: 0.0s, 23 requests, 16 views in file:/mnt/opentaps-1.5.0/framework/common/webcommon/WEB-INF/common-controller.xml
2017-03-01 11:14:59,287 (http-0.0.0.0-80-1) [    ConfigXMLReader.java:184:INFO ] controller loaded: 0.0s, 5 requests, 0 views in file:/mnt/opentaps-1.5.0/framework/common/webcommon/WEB-INF/tempexpr-controller.xml
2017-03-01 11:14:59,290 (http-0.0.0.0-80-1) [    ConfigXMLReader.java:184:INFO ] controller loaded: 0.0s, 8 requests, 2 views in file:/mnt/opentaps-1.5.0/framework/testtools/webapp/testtools/WEB-INF/controller.xml
2017-03-01 11:14:59,290 (http-0.0.0.0-80-1) [    ConfigXMLReader.java:184:INFO ] controller loaded: 0.009s, 110 requests, 64 views in file:/mnt/opentaps-1.5.0/framework/webtools/webapp/webtools/WEB-INF/controller.xml
2017-03-01 11:14:59,291 (http-0.0.0.0-80-1) [     RequestHandler.java:282:INFO ] This is the first request in this visit. sessionId=228625F636DB9E3C1EE0E8990922A631.jvm1
2017-03-01 11:14:59,291 (http-0.0.0.0-80-1) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp.control.LoginWorker#check509CertLogin] from [preprocessor], result is [success]
2017-03-01 11:14:59,292 (http-0.0.0.0-80-1) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp.control.LoginWorker#checkRequestHeaderLogin] from [preprocessor], result is [success]
2017-03-01 11:14:59,293 (http-0.0.0.0-80-1) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp.control.LoginWorker#checkServletRequestRemoteUserLogin] from [preprocessor], result is [success]
2017-03-01 11:14:59,293 (http-0.0.0.0-80-1) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp.control.LoginWorker#checkExternalLoginKey] from [preprocessor], result is [success]
2017-03-01 11:14:59,294 (http-0.0.0.0-80-1) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp.control.ProtectViewWorker#checkProtectedView] from [preprocessor], result is [success]
2017-03-01 11:14:59,307 (http-0.0.0.0-80-1) [   SOAPEventHandler.java:160:INFO ] Request Message:
<?xml version="1.0" encoding="utf-8"?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:testRemoteSoap xmlns:ns2="http://ofbiz.apache.org/service/"><map-Map><ns2:map-Entry><ns2:map-Key><ns2:std-String value="defaultValue"></ns2:std-String></ns2:map-Key><ns2:map-Value><ns2:std-String value="45.67"></ns2:std-String></ns2:map-Value></ns2:map-Entry><ns2:map-Entry><ns2:map-Key><ns2:std-String value="message"></ns2:std-String></ns2:map-Key><ns2:map-Value><ns2:std-String value="prueba"></ns2:std-String></ns2:map-Value></ns2:map-Entry></map-Map></ns2:testRemoteSoap></S:Body></S:Envelope>
llegada:org.apache.catalina.connector.CoyoteInputStream@542e25f0

2017-03-01 11:14:59,318 (http-0.0.0.0-80-1) [   SOAPEventHandler.java:261:INFO ] Response Message:
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><Response><map-Map>
        <map-Entry>
            <map-Key>
                <std-String value="errorMessage"></std-String>
            </map-Key>
            <map-Value>
                <null></null>
            </map-Value>
        </map-Entry>
    </map-Map></Response></soapenv:Body></soapenv:Envelope>

2017-03-01 11:14:59,319 (http-0.0.0.0-80-1) [     RequestHandler.java:421:ERROR] Request SOAPService caused an error with the following message: Error calling event: org.ofbiz.webapp.event.EventHandlerException
2017-03-01 11:14:59,320 (http-0.0.0.0-80-1) [       ServerHitBin.java:628:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default
2017-03-01 11:14:59,352 (http-0.0.0.0-80-1) [       ServerHitBin.java:722:INFO ] Duplicate ServerHit was updated: [GenericEntity:ServerHit][contentId,webtools.SOAPService(java.lang.String)][createdStamp,2017-03-01 11:14:59.323(java.sql.Timestamp)][createdTxStamp,2017-03-01 11:14:59.32(java.sql.Timestamp)][hitStartDateTime,2017-03-01 11:14:59.159(java.sql.Timestamp)][hitTypeId,REQUEST(java.lang.String)][lastUpdatedStamp,2017-03-01 11:14:59.323(java.sql.Timestamp)][lastUpdatedTxStamp,2017-03-01 11:14:59.32(java.sql.Timestamp)][referrerUrl,(java.lang.String)][requestUrl,http://107.180.69.62/webtools/control/SOAPService(java.lang.String)][runningTimeMillis,161(java.lang.Long)][serverHostName,s107-180-69-62.secureserver.net(java.lang.String)][serverIpAddress,107.180.69.62(java.lang.String)][visitId,11183(java.lang.String)]
2017-03-01 11:14:59,352 (http-0.0.0.0-80-1) [     ControlServlet.java:328:INFO ] [[[SOAPService] Request Done- total:0.193,since last([SOAPService] Req...):0.193]]


      From: Shi Jinghai <hu...@hotmail.com>
 To: "user@ofbiz.apache.org" <us...@ofbiz.apache.org> 
 Sent: Tuesday, February 28, 2017 12:32 AM
 Subject: Re: Problem consuming ofbiz soap services from PHP
   
Hi Alfonso,

Perhaps you can try axis2 directly to see whether it's worked well. If yes, you can add axis2 to OFBiz as a plugin.

I built an axis2 component several years ago, I'm not sure whether I can find it.

Kind Regards,

Shi Jinghai

-----邮件原件-----
发件人: Alfonso Barreto [mailto:ablyo@yahoo.com.INVALID] 
发送时间: 2017年2月28日 8:54
收件人: Paul Foxworthy; user@ofbiz.apache.org
主题: Re: Problem consuming ofbiz soap services from PHP

Thanks Paul, I tryed that syntax too, but apparently the one that works better is the one I show, with the one you say it generates an exception on the client side, just after sending.

      From: Paul Foxworthy <pa...@cohsoft.com.au>
 To: user@ofbiz.apache.org; Alfonso Barreto <ab...@yahoo.com>
 Sent: Monday, February 27, 2017 6:51 PM
 Subject: Re: Problem consuming ofbiz soap services from PHP
  
Hi Alfonso,
The log suggests to me that the parameters are not being *sent*: OFBiz is just receiving an empty map:
<map-Map><map-Entry></map-Entry><map-Entry></map-Entry><map-Entry></map-Entry><map-Entry></map-Entry><map-Entry></map-Entry><map-Entry></map-Entry><map-Entry></map-Entry></map-Map>

A map entry has a key and a value. Try using the PHP syntax to create an associative array:
array(    key  => value,    key2 => value2,    key3 => value3,    ...); You could try using something to see the exact SOAP message before OFBiz processes it, perhaps SoapUI (soapui.org).
Hope that helps.
Paul Foxworthy

On 28 February 2017 at 10:52, Alfonso Barreto <ab...@yahoo.com.invalid> wrote:

Been trying to find and updated reference for this, but still haven't found it.
I try to consume the soap  testing services that comes on ofbiz, but for some reason, the parameters are not readed on the server part. This is the code Iam using on PHP, tryed several combinations but cant find the rigth one. Will appreciate some help.



            ini_set('soap. wsdl_cache_enabled', 0);
            ini_set('soap.wsdl_cache_ttl', 900);
            ini_set('default_socket_ timeout', 15);

       
            //$wsdl = 'https://107.180.69.62/ webtools/control/SOAPService/ getProductInventoryAvailable? WSDL';
            //$wsdl = 'https://107.180.69.62/ webtools/control/SOAPService/ testRemoteSoap?WSDL';
            //$wsdl = 'https://107.180.69.62/ webtools/control/SOAPService/ testRemoteSoap1?WSDL';
            //$wsdl = 'https://107.180.69.62/ webtools/control/SOAPService/ testSoapSimple?WSDL';
            $wsdl = 'https://107.180.69.62/ webtools/control/SOAPService/ testSoap?WSDL';
            $wsdl = 'https://107.180.69.62/ product/control/ soapGetProductNames/ soapWebService?WSDL';
            $data=null;
            $options = array(
        //'style'=>SOAP_RPC,
        //'use'=>SOAP_ENCODED,
        'soap_version'=>SOAP_1_2,
        //'cache_wsdl'=>WSDL_CACHE_ NONE,
        'connection_timeout'=>15,
        'trace'=>true,
        'encoding'=>'UTF-8',
        'exceptions'=>true,
                );
            try {
                $soap = new SoapClient($wsdl,$options);
                //$soap->__soapCall('lupe',' lupe','lupe1234','es',null, testSoapSimple', array($params));
                //$data = $soap->testSoapSimple(array(' lupe','lupe','lupe1234','es', null,34.5,'testPrueba')); //$params);
                //$data = $soap->testSoap(array('lupe',' lupe','lupe1234','es',null,34. 5,'testPrueba'));
                //$data = $soap->testRemoteSoap(array( 34.6,'Prueba2Test','lupe',' lupe1234'));
                //$data = $soap->testRemoteSoap1(array(' 56789','LatLonListZipCode'));
                $data = $soap->soapWebService(array(' prueba'));
            }
            catch(Exception $e) {
                print $e->getMessage();
            }
 
            var_dump($data);


In any combination I use, this is the log I get on the server:
2017-02-27 17:49:38,757 (http-0.0.0.0-443-10) [       VisitHandler.java:233:INFO ] Found visitorId [null] in cookie
2017-02-27 17:49:38,840 (http-0.0.0.0-443-10) [     RequestHandler.java:282:INFO ] This is the first request in this visit. sessionId= A41F2EF98F6C29894283AB3FAE4F73 9B.jvm1
2017-02-27 17:49:38,841 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# check509CertLogin] from [preprocessor], result is [success]
2017-02-27 17:49:38,842 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# checkRequestHeaderLogin] from [preprocessor], result is [success]
2017-02-27 17:49:38,842 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# checkServletRequestRemoteUserL ogin] from [preprocessor], result is [success]
2017-02-27 17:49:38,843 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# checkExternalLoginKey] from [preprocessor], result is [success]
2017-02-27 17:49:38,844 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.ProtectViewWorker# checkProtectedView] from [preprocessor], result is [success]
2017-02-27 17:49:38,880 (http-0.0.0.0-443-10) [   SOAPEventHandler.java:160:INFO ] Request Message:
<?xml version="1.0" encoding="utf-8"?><env: Envelope xmlns:env="http://www.w3.org/ 2003/05/soap-envelope" xmlns:ns1="http://ofbiz. apache.org/service/"><env: Body><ns1:testSoap><map-Map>< map-Entry></map-Entry><map- Entry></map-Entry><map-Entry>< /map-Entry><map-Entry></map- Entry><map-Entry></map-Entry>< map-Entry></map-Entry><map- Entry></map-Entry></map-Map></ ns1:testSoap></env:Body></env: Envelope>

2017-02-27 17:49:38,897 (http-0.0.0.0-443-10) [   SOAPEventHandler.java:261:INFO ] Response Message:
<?xml version="1.0" encoding="utf-8"?><soapenv: Envelope xmlns:soapenv="http://schemas. xmlsoap.org/soap/envelope/">< soapenv:Body><Response><map- Map>
        <map-Entry>
            <map-Key>
                <std-String value="errorMessage"></std- String>
            </map-Key>
            <map-Value>
                <null></null>
            </map-Value>
        </map-Entry>
    </map-Map></Response></ soapenv:Body></soapenv: Envelope>

2017-02-27 17:49:38,899 (http-0.0.0.0-443-10) [     RequestHandler.java:421:ERROR] Request SOAPService caused an error with the following message: Error calling event: org.ofbiz.webapp.event. EventHandlerException
2017-02-27 17:49:38,900 (http-0.0.0.0-443-10) [       ServerHitBin.java:628:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default
2017-02-27 17:49:38,934 (http-0.0.0.0-443-10) [       ServerHitBin.java:722:INFO ] Duplicate ServerHit was updated: [GenericEntity:ServerHit][ contentId,webtools. SOAPService(java.lang.String)] [createdStamp,2017-02-27 17:49:38.903(java.sql. Timestamp)][createdTxStamp, 2017-02-27 17:49:38.9(java.sql.Timestamp) ][hitStartDateTime,2017-02-27 17:49:38.756(java.sql. Timestamp)][hitTypeId,REQUEST( java.lang.String)][ lastUpdatedStamp,2017-02-27 17:49:38.903(java.sql. Timestamp)][ lastUpdatedTxStamp,2017-02-27 17:49:38.9(java.sql.Timestamp) ][referrerUrl,(java.lang. String)][requestUrl,https:// 107.180.69.62/webtools/ control/SOAPService(java.lang. String)][runningTimeMillis, 143(java.lang.Long)][ serverHostName,s107-180-69-62. secureserver.net(java.lang. String)][serverIpAddress,107. 180.69.62(java.lang.String)][ visitId,11053(java.lang. String)]
2017-02-27 17:49:38,935 (http-0.0.0.0-443-10) [     ControlServlet.java:328:INFO ] [[[SOAPService] Request Done- total:0.177,since last([SOAPService] Req...):0.177]]
2017-02-27 17:50:29,461 (http-0.0.0.0-443-10) [ControlEventListener.java:65 :INFO ] Creating session: C458AFF4A31D8B54E2F7E547FC4DF4 BA.jvm1
2017-02-27 17:50:29,462 (http-0.0.0.0-443-10) [      ContextFilter.java:202:INFO ] [Request]: /webtools/control/SOAPService/ testSoap
2017-02-27 17:50:29,464 (http-0.0.0.0-443-10) [     ControlServlet.java:145:INFO ] [[[SOAPService] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
2017-02-27 17:50:29,464 (http-0.0.0.0-443-10) [       VisitHandler.java:233:INFO ] Found visitorId [null] in cookie
2017-02-27 17:50:29,599 (http-0.0.0.0-443-10) [    ConfigXMLReader.java:184:INFO ] controller loaded: 0.0s, 23 requests, 16 views in file:/mnt/opentaps-1.5.0/ framework/common/webcommon/ WEB-INF/common-controller.xml
2017-02-27 17:50:29,602 (http-0.0.0.0-443-10) [    ConfigXMLReader.java:184:INFO ] controller loaded: 0.0s, 5 requests, 0 views in file:/mnt/opentaps-1.5.0/ framework/common/webcommon/ WEB-INF/tempexpr-controller. xml
2017-02-27 17:50:29,605 (http-0.0.0.0-443-10) [    ConfigXMLReader.java:184:INFO ] controller loaded: 0.0s, 8 requests, 2 views in file:/mnt/opentaps-1.5.0/ framework/testtools/webapp/ testtools/WEB-INF/controller. xml
2017-02-27 17:50:29,606 (http-0.0.0.0-443-10) [    ConfigXMLReader.java:184:INFO ] controller loaded: 0.01s, 110 requests, 64 views in file:/mnt/opentaps-1.5.0/ framework/webtools/webapp/ webtools/WEB-INF/controller. xml
2017-02-27 17:50:29,606 (http-0.0.0.0-443-10) [     RequestHandler.java:282:INFO ] This is the first request in this visit. sessionId= C458AFF4A31D8B54E2F7E547FC4DF4 BA.jvm1
2017-02-27 17:50:29,607 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# check509CertLogin] from [preprocessor], result is [success]
2017-02-27 17:50:29,608 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# checkRequestHeaderLogin] from [preprocessor], result is [success]
2017-02-27 17:50:29,608 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# checkServletRequestRemoteUserL ogin] from [preprocessor], result is [success]
2017-02-27 17:50:29,609 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# checkExternalLoginKey] from [preprocessor], result is [success]
2017-02-27 17:50:29,610 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.ProtectViewWorker# checkProtectedView] from [preprocessor], result is [success]
2017-02-27 17:50:29,623 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [soap:#] from [request], result is [null]
2017-02-27 17:50:29,624 (http-0.0.0.0-443-10) [       ServerHitBin.java:628:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default
2017-02-27 17:50:29,658 (http-0.0.0.0-443-10) [       ServerHitBin.java:722:INFO ] Duplicate ServerHit was updated: [GenericEntity:ServerHit][ contentId,webtools. SOAPService(java.lang.String)] [createdStamp,2017-02-27 17:50:29.628(java.sql. Timestamp)][createdTxStamp, 2017-02-27 17:50:29.625(java.sql. Timestamp)][hitStartDateTime, 2017-02-27 17:50:29.464(java.sql. Timestamp)][hitTypeId,REQUEST( java.lang.String)][ lastUpdatedStamp,2017-02-27 17:50:29.628(java.sql. Timestamp)][ lastUpdatedTxStamp,2017-02-27 17:50:29.625(java.sql. Timestamp)][referrerUrl,(java. lang.String)][requestUrl,https ://107.180.69.62/webtools/ control/SOAPService/testSoap? WSDL(java.lang.String)][ runningTimeMillis,160(java. lang.Long)][serverHostName, s107-180-69-62.secureserver. net(java.lang.String)][ serverIpAddress,107.180.69.62( java.lang.String)][visitId, 11054(java.lang.String)]
2017-02-27 17:50:29,658 (http-0.0.0.0-443-10) [     ControlServlet.java:328:INFO ] [[[SOAPService] Request Done- total:0.194,since last([SOAPService] Req...):0.194]]
2017-02-27 17:50:31,362 (http-0.0.0.0-443-10) [ControlEventListener.java:65 :INFO ] Creating session: D5C0BEB00515DC3D18C765C9D85D18 34.jvm1
2017-02-27 17:50:31,362 (http-0.0.0.0-443-10) [      ContextFilter.java:202:INFO ] [Request]: /webtools/control/SOAPService
2017-02-27 17:50:31,364 (http-0.0.0.0-443-10) [     ControlServlet.java:145:INFO ] [[[SOAPService] Request Begun, encoding=[utf-8]- total:0.0,since last(Begin):0.0]]
2017-02-27 17:50:31,365 (http-0.0.0.0-443-10) [       VisitHandler.java:233:INFO ] Found visitorId [null] in cookie
2017-02-27 17:50:31,458 (http-0.0.0.0-443-10) [     RequestHandler.java:282:INFO ] This is the first request in this visit. sessionId= D5C0BEB00515DC3D18C765C9D85D18 34.jvm1
2017-02-27 17:50:31,459 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# check509CertLogin] from [preprocessor], result is [success]
2017-02-27 17:50:31,460 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# checkRequestHeaderLogin] from [preprocessor], result is [success]
2017-02-27 17:50:31,461 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# checkServletRequestRemoteUserL ogin] from [preprocessor], result is [success]
2017-02-27 17:50:31,461 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# checkExternalLoginKey] from [preprocessor], result is [success]
2017-02-27 17:50:31,462 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.ProtectViewWorker# checkProtectedView] from [preprocessor], result is [success]
2017-02-27 17:50:31,473 (http-0.0.0.0-443-10) [   SOAPEventHandler.java:160:INFO ] Request Message:
<?xml version="1.0" encoding="utf-8"?><env: Envelope xmlns:env="http://www.w3.org/ 2003/05/soap-envelope" xmlns:ns1="http://ofbiz. apache.org/service/"><env: Body><ns1:testSoap><map-Map>< map-Entry></map-Entry><map- Entry></map-Entry><map-Entry>< /map-Entry><map-Entry></map- Entry><map-Entry></map-Entry>< map-Entry></map-Entry><map- Entry></map-Entry></map-Map></ ns1:testSoap></env:Body></env: Envelope>

2017-02-27 17:50:31,486 (http-0.0.0.0-443-10) [   SOAPEventHandler.java:261:INFO ] Response Message:
<?xml version="1.0" encoding="utf-8"?><soapenv: Envelope xmlns:soapenv="http://schemas. xmlsoap.org/soap/envelope/">< soapenv:Body><Response><map- Map>
        <map-Entry>
            <map-Key>
                <std-String value="errorMessage"></std- String>
            </map-Key>
            <map-Value>
                <null></null>
            </map-Value>
        </map-Entry>
    </map-Map></Response></ soapenv:Body></soapenv: Envelope>

2017-02-27 17:50:31,488 (http-0.0.0.0-443-10) [     RequestHandler.java:421:ERROR] Request SOAPService caused an error with the following message: Error calling event: org.ofbiz.webapp.event. EventHandlerException
2017-02-27 17:50:31,488 (http-0.0.0.0-443-10) [       ServerHitBin.java:628:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default
2017-02-27 17:50:31,530 (http-0.0.0.0-443-10) [       ServerHitBin.java:722:INFO ] Duplicate ServerHit was updated: [GenericEntity:ServerHit][ contentId,webtools. SOAPService(java.lang.String)] [createdStamp,2017-02-27 17:50:31.492(java.sql. Timestamp)][createdTxStamp, 2017-02-27 17:50:31.489(java.sql. Timestamp)][hitStartDateTime, 2017-02-27 17:50:31.364(java.sql. Timestamp)][hitTypeId,REQUEST( java.lang.String)][ lastUpdatedStamp,2017-02-27 17:50:31.492(java.sql. Timestamp)][ lastUpdatedTxStamp,2017-02-27 17:50:31.489(java.sql. Timestamp)][referrerUrl,(java. lang.String)][requestUrl,https ://107.180.69.62/webtools/ control/SOAPService(java.lang. String)][runningTimeMillis, 124(java.lang.Long)][ serverHostName,s107-180-69-62. secureserver.net(java.lang. String)][serverIpAddress,107. 180.69.62(java.lang.String)][ visitId,11055(java.lang. String)]
2017-02-27 17:50:31,530 (http-0.0.0.0-443-10) [     ControlServlet.java:328:INFO ] [[[SOAPService] Request Done- total:0.166,since last([SOAPService] Req...):0.166]]





-- 
Coherent Software Australia Pty Ltd
PO Box 2773
Cheltenham Vic 3192Australia
Phone: +61 3 9585 6788
Web: http://www.coherentsoftware.com.au/
Email: info@coherentsoftware.com.au


  


   

Re: Problem consuming ofbiz soap services from PHP

Posted by Jacques Le Roux <ja...@les7arts.com>.
I just stumbled upon this, here is a quick answer (did not get into details)

1) You are using a (old?) Opentaps version, not a recent OFBiz one. But that should not have an impact here

2) Maybe silly, but maybe Quercus would help you? https://issues.apache.org/jira/browse/OFBIZ-4203

HTH

Jacques


Le 01/03/2017 � 18:25, Alfonso Barreto a �crit :
> Keep looking to solve the problem, I havent found how to add Axis2 on ofbiz, I only find  very old reference on how to do it, and nothing very specific. I can see on the ofbiz that there is an axis2 client part already integrated, but cant find the server part. Any one has a recent reference on how to add it?
>
> Mean time, I tryed to consume the services using a java client, got different error, but I can see the parameters being sent to the server via the Map structure, may be I need to do the same on php with the same structure?
> But still have error on the server even sending Map structure, cant see the problem still, will appreciate some ideas
> Here is the java code:
> package clientesoap;
>
> import org.apache.ofbiz.service.MapEntry;
> import org.apache.ofbiz.service.MapKey;
> import org.apache.ofbiz.service.MapMap;
> import org.apache.ofbiz.service.MapValue;
> import org.apache.ofbiz.service.StdString;
>
>
> public class ClienteSoap {
>
>      /**
>       * @param args the command line arguments
>       */
>      public static void main(String[] args) {
>          
>              
>          org.apache.ofbiz.service.MapMap myMap2 = new org.apache.ofbiz.service.MapMap();
>              myMap2.getMapEntry().add(makeMapEntry("defaultValue", "45.67"));
>              myMap2.getMapEntry().add(makeMapEntry("message", "prueba"));
>              
>              
>
>              javax.xml.ws.Holder<org.apache.ofbiz.service.MapMap> mapMap2 =
>                      new   javax.xml.ws.Holder<org.apache.ofbiz.service.MapMap>(myMap2);
>              
>       try {
>             
>              testRemoteSoap(mapMap2);
>       } catch (Exception ex) {
>              ex.printStackTrace();
>          }
>      }
>
>       private static MapEntry makeMapEntry(String key, String value) {
>
>              StdString keyString = new StdString();
>              keyString.setValue(key);
>
>              MapKey mapKey = new MapKey();
>              mapKey.setStdString(keyString);
>
>              StdString valueString = new StdString();
>              valueString.setValue(value);
>
>              MapValue mapValue = new MapValue();
>              mapValue.setStdString(valueString);
>
>              MapEntry mapEntry = new MapEntry();
>              mapEntry.setMapKey(mapKey);
>              mapEntry.setMapValue(mapValue);
>
>              return mapEntry;
>      }
>       
>       
>        private static void testRemoteSoap(javax.xml.ws.Holder<org.apache.ofbiz.service.MapMap> mapMap) {
>          org.apache.ofbiz.service.TestRemoteSoap service = new org.apache.ofbiz.service.TestRemoteSoap();
>          org.apache.ofbiz.service.TestRemoteSoapPortType port = service.getTestRemoteSoapPort();
>          port.testRemoteSoap(mapMap);
>      }
>      
> }
>
>
> And this is the log on ofbiz
> 2017-03-01 11:14:59,159 (http-0.0.0.0-80-1) [     ControlServlet.java:145:INFO ] [[[SOAPService] Request Begun, encoding=[utf-8]- total:0.0,since last(Begin):0.0]]
> 2017-03-01 11:14:59,160 (http-0.0.0.0-80-1) [       VisitHandler.java:233:INFO ] Found visitorId [null] in cookie
> 2017-03-01 11:14:59,202 (http-0.0.0.0-80-1) [       SequenceUtil.java:338:INFO ] Got bank of sequenced IDs for [Visitor]; curSeqId=10440, maxSeqId=10450, bankSize=10
> 2017-03-01 11:14:59,284 (http-0.0.0.0-80-1) [    ConfigXMLReader.java:184:INFO ] controller loaded: 0.0s, 23 requests, 16 views in file:/mnt/opentaps-1.5.0/framework/common/webcommon/WEB-INF/common-controller.xml
> 2017-03-01 11:14:59,287 (http-0.0.0.0-80-1) [    ConfigXMLReader.java:184:INFO ] controller loaded: 0.0s, 5 requests, 0 views in file:/mnt/opentaps-1.5.0/framework/common/webcommon/WEB-INF/tempexpr-controller.xml
> 2017-03-01 11:14:59,290 (http-0.0.0.0-80-1) [    ConfigXMLReader.java:184:INFO ] controller loaded: 0.0s, 8 requests, 2 views in file:/mnt/opentaps-1.5.0/framework/testtools/webapp/testtools/WEB-INF/controller.xml
> 2017-03-01 11:14:59,290 (http-0.0.0.0-80-1) [    ConfigXMLReader.java:184:INFO ] controller loaded: 0.009s, 110 requests, 64 views in file:/mnt/opentaps-1.5.0/framework/webtools/webapp/webtools/WEB-INF/controller.xml
> 2017-03-01 11:14:59,291 (http-0.0.0.0-80-1) [     RequestHandler.java:282:INFO ] This is the first request in this visit. sessionId=228625F636DB9E3C1EE0E8990922A631.jvm1
> 2017-03-01 11:14:59,291 (http-0.0.0.0-80-1) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp.control.LoginWorker#check509CertLogin] from [preprocessor], result is [success]
> 2017-03-01 11:14:59,292 (http-0.0.0.0-80-1) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp.control.LoginWorker#checkRequestHeaderLogin] from [preprocessor], result is [success]
> 2017-03-01 11:14:59,293 (http-0.0.0.0-80-1) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp.control.LoginWorker#checkServletRequestRemoteUserLogin] from [preprocessor], result is [success]
> 2017-03-01 11:14:59,293 (http-0.0.0.0-80-1) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp.control.LoginWorker#checkExternalLoginKey] from [preprocessor], result is [success]
> 2017-03-01 11:14:59,294 (http-0.0.0.0-80-1) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp.control.ProtectViewWorker#checkProtectedView] from [preprocessor], result is [success]
> 2017-03-01 11:14:59,307 (http-0.0.0.0-80-1) [   SOAPEventHandler.java:160:INFO ] Request Message:
> <?xml version="1.0" encoding="utf-8"?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/"><S:Body><ns2:testRemoteSoap xmlns:ns2="http://ofbiz.apache.org/service/"><map-Map><ns2:map-Entry><ns2:map-Key><ns2:std-String value="defaultValue"></ns2:std-String></ns2:map-Key><ns2:map-Value><ns2:std-String value="45.67"></ns2:std-String></ns2:map-Value></ns2:map-Entry><ns2:map-Entry><ns2:map-Key><ns2:std-String value="message"></ns2:std-String></ns2:map-Key><ns2:map-Value><ns2:std-String value="prueba"></ns2:std-String></ns2:map-Value></ns2:map-Entry></map-Map></ns2:testRemoteSoap></S:Body></S:Envelope>
> llegada:org.apache.catalina.connector.CoyoteInputStream@542e25f0
>
> 2017-03-01 11:14:59,318 (http-0.0.0.0-80-1) [   SOAPEventHandler.java:261:INFO ] Response Message:
> <?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><Response><map-Map>
>          <map-Entry>
>              <map-Key>
>                  <std-String value="errorMessage"></std-String>
>              </map-Key>
>              <map-Value>
>                  <null></null>
>              </map-Value>
>          </map-Entry>
>      </map-Map></Response></soapenv:Body></soapenv:Envelope>
>
> 2017-03-01 11:14:59,319 (http-0.0.0.0-80-1) [     RequestHandler.java:421:ERROR] Request SOAPService caused an error with the following message: Error calling event: org.ofbiz.webapp.event.EventHandlerException
> 2017-03-01 11:14:59,320 (http-0.0.0.0-80-1) [       ServerHitBin.java:628:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default
> 2017-03-01 11:14:59,352 (http-0.0.0.0-80-1) [       ServerHitBin.java:722:INFO ] Duplicate ServerHit was updated: [GenericEntity:ServerHit][contentId,webtools.SOAPService(java.lang.String)][createdStamp,2017-03-01 11:14:59.323(java.sql.Timestamp)][createdTxStamp,2017-03-01 11:14:59.32(java.sql.Timestamp)][hitStartDateTime,2017-03-01 11:14:59.159(java.sql.Timestamp)][hitTypeId,REQUEST(java.lang.String)][lastUpdatedStamp,2017-03-01 11:14:59.323(java.sql.Timestamp)][lastUpdatedTxStamp,2017-03-01 11:14:59.32(java.sql.Timestamp)][referrerUrl,(java.lang.String)][requestUrl,http://107.180.69.62/webtools/control/SOAPService(java.lang.String)][runningTimeMillis,161(java.lang.Long)][serverHostName,s107-180-69-62.secureserver.net(java.lang.String)][serverIpAddress,107.180.69.62(java.lang.String)][visitId,11183(java.lang.String)]
> 2017-03-01 11:14:59,352 (http-0.0.0.0-80-1) [     ControlServlet.java:328:INFO ] [[[SOAPService] Request Done- total:0.193,since last([SOAPService] Req...):0.193]]
>
>
>        From: Shi Jinghai <hu...@hotmail.com>
>   To: "user@ofbiz.apache.org" <us...@ofbiz.apache.org>
>   Sent: Tuesday, February 28, 2017 12:32 AM
>   Subject: Re: Problem consuming ofbiz soap services from PHP
>     
> Hi Alfonso,
>
> Perhaps you can try axis2 directly to see whether it's worked well. If yes, you can add axis2 to OFBiz as a plugin.
>
> I built an axis2 component several years ago, I'm not sure whether I can find it.
>
> Kind Regards,
>
> Shi Jinghai
>
> -----\u90ae\u4ef6\u539f\u4ef6-----
> \u53d1\u4ef6\u4eba: Alfonso Barreto [mailto:ablyo@yahoo.com.INVALID]
> \u53d1\u9001\u65f6\u95f4: 2017\u5e742\u670828\u65e5 8:54
> \u6536\u4ef6\u4eba: Paul Foxworthy; user@ofbiz.apache.org
> \u4e3b\u9898: Re: Problem consuming ofbiz soap services from PHP
>
> Thanks Paul, I tryed that syntax too, but apparently the one that works better is the one I show, with the one you say it generates an exception on the client side, just after sending.
>
>        From: Paul Foxworthy <pa...@cohsoft.com.au>
>   To: user@ofbiz.apache.org; Alfonso Barreto <ab...@yahoo.com>
>   Sent: Monday, February 27, 2017 6:51 PM
>   Subject: Re: Problem consuming ofbiz soap services from PHP
>    
> Hi Alfonso,
> The log suggests to me that the parameters are not being *sent*: OFBiz is just receiving an empty map:
> <map-Map><map-Entry></map-Entry><map-Entry></map-Entry><map-Entry></map-Entry><map-Entry></map-Entry><map-Entry></map-Entry><map-Entry></map-Entry><map-Entry></map-Entry></map-Map>
>
> A map entry has a key and a value. Try using the PHP syntax to create an associative array:
> array(    key  => value,    key2 => value2,    key3 => value3,    ...); You could try using something to see the exact SOAP message before OFBiz processes it, perhaps SoapUI (soapui.org).
> Hope that helps.
> Paul Foxworthy
>
> On 28 February 2017 at 10:52, Alfonso Barreto <ab...@yahoo.com.invalid> wrote:
>
> Been trying to find and updated reference for this, but still haven't found it.
> I try to consume the soap  testing services that comes on ofbiz, but for some reason, the parameters are not readed on the server part. This is the code Iam using on PHP, tryed several combinations but cant find the rigth one. Will appreciate some help.
>
>
>
>              ini_set('soap. wsdl_cache_enabled', 0);
>              ini_set('soap.wsdl_cache_ttl', 900);
>              ini_set('default_socket_ timeout', 15);
>
>         
>              //$wsdl = 'https://107.180.69.62/ webtools/control/SOAPService/ getProductInventoryAvailable? WSDL';
>              //$wsdl = 'https://107.180.69.62/ webtools/control/SOAPService/ testRemoteSoap?WSDL';
>              //$wsdl = 'https://107.180.69.62/ webtools/control/SOAPService/ testRemoteSoap1?WSDL';
>              //$wsdl = 'https://107.180.69.62/ webtools/control/SOAPService/ testSoapSimple?WSDL';
>              $wsdl = 'https://107.180.69.62/ webtools/control/SOAPService/ testSoap?WSDL';
>              $wsdl = 'https://107.180.69.62/ product/control/ soapGetProductNames/ soapWebService?WSDL';
>              $data=null;
>              $options = array(
>          //'style'=>SOAP_RPC,
>          //'use'=>SOAP_ENCODED,
>          'soap_version'=>SOAP_1_2,
>          //'cache_wsdl'=>WSDL_CACHE_ NONE,
>          'connection_timeout'=>15,
>          'trace'=>true,
>          'encoding'=>'UTF-8',
>          'exceptions'=>true,
>                  );
>              try {
>                  $soap = new SoapClient($wsdl,$options);
>                  //$soap->__soapCall('lupe',' lupe','lupe1234','es',null, testSoapSimple', array($params));
>                  //$data = $soap->testSoapSimple(array(' lupe','lupe','lupe1234','es', null,34.5,'testPrueba')); //$params);
>                  //$data = $soap->testSoap(array('lupe',' lupe','lupe1234','es',null,34. 5,'testPrueba'));
>                  //$data = $soap->testRemoteSoap(array( 34.6,'Prueba2Test','lupe',' lupe1234'));
>                  //$data = $soap->testRemoteSoap1(array(' 56789','LatLonListZipCode'));
>                  $data = $soap->soapWebService(array(' prueba'));
>              }
>              catch(Exception $e) {
>                  print $e->getMessage();
>              }
>   
>              var_dump($data);
>
>
> In any combination I use, this is the log I get on the server:
> 2017-02-27 17:49:38,757 (http-0.0.0.0-443-10) [       VisitHandler.java:233:INFO ] Found visitorId [null] in cookie
> 2017-02-27 17:49:38,840 (http-0.0.0.0-443-10) [     RequestHandler.java:282:INFO ] This is the first request in this visit. sessionId= A41F2EF98F6C29894283AB3FAE4F73 9B.jvm1
> 2017-02-27 17:49:38,841 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# check509CertLogin] from [preprocessor], result is [success]
> 2017-02-27 17:49:38,842 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# checkRequestHeaderLogin] from [preprocessor], result is [success]
> 2017-02-27 17:49:38,842 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# checkServletRequestRemoteUserL ogin] from [preprocessor], result is [success]
> 2017-02-27 17:49:38,843 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# checkExternalLoginKey] from [preprocessor], result is [success]
> 2017-02-27 17:49:38,844 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.ProtectViewWorker# checkProtectedView] from [preprocessor], result is [success]
> 2017-02-27 17:49:38,880 (http-0.0.0.0-443-10) [   SOAPEventHandler.java:160:INFO ] Request Message:
> <?xml version="1.0" encoding="utf-8"?><env: Envelope xmlns:env="http://www.w3.org/ 2003/05/soap-envelope" xmlns:ns1="http://ofbiz. apache.org/service/"><env: Body><ns1:testSoap><map-Map>< map-Entry></map-Entry><map- Entry></map-Entry><map-Entry>< /map-Entry><map-Entry></map- Entry><map-Entry></map-Entry>< map-Entry></map-Entry><map- Entry></map-Entry></map-Map></ ns1:testSoap></env:Body></env: Envelope>
>
> 2017-02-27 17:49:38,897 (http-0.0.0.0-443-10) [   SOAPEventHandler.java:261:INFO ] Response Message:
> <?xml version="1.0" encoding="utf-8"?><soapenv: Envelope xmlns:soapenv="http://schemas. xmlsoap.org/soap/envelope/">< soapenv:Body><Response><map- Map>
>          <map-Entry>
>              <map-Key>
>                  <std-String value="errorMessage"></std- String>
>              </map-Key>
>              <map-Value>
>                  <null></null>
>              </map-Value>
>          </map-Entry>
>      </map-Map></Response></ soapenv:Body></soapenv: Envelope>
>
> 2017-02-27 17:49:38,899 (http-0.0.0.0-443-10) [     RequestHandler.java:421:ERROR] Request SOAPService caused an error with the following message: Error calling event: org.ofbiz.webapp.event. EventHandlerException
> 2017-02-27 17:49:38,900 (http-0.0.0.0-443-10) [       ServerHitBin.java:628:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default
> 2017-02-27 17:49:38,934 (http-0.0.0.0-443-10) [       ServerHitBin.java:722:INFO ] Duplicate ServerHit was updated: [GenericEntity:ServerHit][ contentId,webtools. SOAPService(java.lang.String)] [createdStamp,2017-02-27 17:49:38.903(java.sql. Timestamp)][createdTxStamp, 2017-02-27 17:49:38.9(java.sql.Timestamp) ][hitStartDateTime,2017-02-27 17:49:38.756(java.sql. Timestamp)][hitTypeId,REQUEST( java.lang.String)][ lastUpdatedStamp,2017-02-27 17:49:38.903(java.sql. Timestamp)][ lastUpdatedTxStamp,2017-02-27 17:49:38.9(java.sql.Timestamp) ][referrerUrl,(java.lang. String)][requestUrl,https:// 107.180.69.62/webtools/ control/SOAPService(java.lang. String)][runningTimeMillis, 143(java.lang.Long)][ serverHostName,s107-180-69-62. secureserver.net(java.lang. String)][serverIpAddress,107. 180.69.62(java.lang.String)][ visitId,11053(java.lang. String)]
> 2017-02-27 17:49:38,935 (http-0.0.0.0-443-10) [     ControlServlet.java:328:INFO ] [[[SOAPService] Request Done- total:0.177,since last([SOAPService] Req...):0.177]]
> 2017-02-27 17:50:29,461 (http-0.0.0.0-443-10) [ControlEventListener.java:65 :INFO ] Creating session: C458AFF4A31D8B54E2F7E547FC4DF4 BA.jvm1
> 2017-02-27 17:50:29,462 (http-0.0.0.0-443-10) [      ContextFilter.java:202:INFO ] [Request]: /webtools/control/SOAPService/ testSoap
> 2017-02-27 17:50:29,464 (http-0.0.0.0-443-10) [     ControlServlet.java:145:INFO ] [[[SOAPService] Request Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
> 2017-02-27 17:50:29,464 (http-0.0.0.0-443-10) [       VisitHandler.java:233:INFO ] Found visitorId [null] in cookie
> 2017-02-27 17:50:29,599 (http-0.0.0.0-443-10) [    ConfigXMLReader.java:184:INFO ] controller loaded: 0.0s, 23 requests, 16 views in file:/mnt/opentaps-1.5.0/ framework/common/webcommon/ WEB-INF/common-controller.xml
> 2017-02-27 17:50:29,602 (http-0.0.0.0-443-10) [    ConfigXMLReader.java:184:INFO ] controller loaded: 0.0s, 5 requests, 0 views in file:/mnt/opentaps-1.5.0/ framework/common/webcommon/ WEB-INF/tempexpr-controller. xml
> 2017-02-27 17:50:29,605 (http-0.0.0.0-443-10) [    ConfigXMLReader.java:184:INFO ] controller loaded: 0.0s, 8 requests, 2 views in file:/mnt/opentaps-1.5.0/ framework/testtools/webapp/ testtools/WEB-INF/controller. xml
> 2017-02-27 17:50:29,606 (http-0.0.0.0-443-10) [    ConfigXMLReader.java:184:INFO ] controller loaded: 0.01s, 110 requests, 64 views in file:/mnt/opentaps-1.5.0/ framework/webtools/webapp/ webtools/WEB-INF/controller. xml
> 2017-02-27 17:50:29,606 (http-0.0.0.0-443-10) [     RequestHandler.java:282:INFO ] This is the first request in this visit. sessionId= C458AFF4A31D8B54E2F7E547FC4DF4 BA.jvm1
> 2017-02-27 17:50:29,607 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# check509CertLogin] from [preprocessor], result is [success]
> 2017-02-27 17:50:29,608 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# checkRequestHeaderLogin] from [preprocessor], result is [success]
> 2017-02-27 17:50:29,608 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# checkServletRequestRemoteUserL ogin] from [preprocessor], result is [success]
> 2017-02-27 17:50:29,609 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# checkExternalLoginKey] from [preprocessor], result is [success]
> 2017-02-27 17:50:29,610 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.ProtectViewWorker# checkProtectedView] from [preprocessor], result is [success]
> 2017-02-27 17:50:29,623 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [soap:#] from [request], result is [null]
> 2017-02-27 17:50:29,624 (http-0.0.0.0-443-10) [       ServerHitBin.java:628:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default
> 2017-02-27 17:50:29,658 (http-0.0.0.0-443-10) [       ServerHitBin.java:722:INFO ] Duplicate ServerHit was updated: [GenericEntity:ServerHit][ contentId,webtools. SOAPService(java.lang.String)] [createdStamp,2017-02-27 17:50:29.628(java.sql. Timestamp)][createdTxStamp, 2017-02-27 17:50:29.625(java.sql. Timestamp)][hitStartDateTime, 2017-02-27 17:50:29.464(java.sql. Timestamp)][hitTypeId,REQUEST( java.lang.String)][ lastUpdatedStamp,2017-02-27 17:50:29.628(java.sql. Timestamp)][ lastUpdatedTxStamp,2017-02-27 17:50:29.625(java.sql. Timestamp)][referrerUrl,(java. lang.String)][requestUrl,https ://107.180.69.62/webtools/ control/SOAPService/testSoap? WSDL(java.lang.String)][ runningTimeMillis,160(java. lang.Long)][serverHostName, s107-180-69-62.secureserver. net(java.lang.String)][ serverIpAddress,107.180.69.62( java.lang.String)][visitId, 11054(java.lang.String)]
> 2017-02-27 17:50:29,658 (http-0.0.0.0-443-10) [     ControlServlet.java:328:INFO ] [[[SOAPService] Request Done- total:0.194,since last([SOAPService] Req...):0.194]]
> 2017-02-27 17:50:31,362 (http-0.0.0.0-443-10) [ControlEventListener.java:65 :INFO ] Creating session: D5C0BEB00515DC3D18C765C9D85D18 34.jvm1
> 2017-02-27 17:50:31,362 (http-0.0.0.0-443-10) [      ContextFilter.java:202:INFO ] [Request]: /webtools/control/SOAPService
> 2017-02-27 17:50:31,364 (http-0.0.0.0-443-10) [     ControlServlet.java:145:INFO ] [[[SOAPService] Request Begun, encoding=[utf-8]- total:0.0,since last(Begin):0.0]]
> 2017-02-27 17:50:31,365 (http-0.0.0.0-443-10) [       VisitHandler.java:233:INFO ] Found visitorId [null] in cookie
> 2017-02-27 17:50:31,458 (http-0.0.0.0-443-10) [     RequestHandler.java:282:INFO ] This is the first request in this visit. sessionId= D5C0BEB00515DC3D18C765C9D85D18 34.jvm1
> 2017-02-27 17:50:31,459 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# check509CertLogin] from [preprocessor], result is [success]
> 2017-02-27 17:50:31,460 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# checkRequestHeaderLogin] from [preprocessor], result is [success]
> 2017-02-27 17:50:31,461 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# checkServletRequestRemoteUserL ogin] from [preprocessor], result is [success]
> 2017-02-27 17:50:31,461 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.LoginWorker# checkExternalLoginKey] from [preprocessor], result is [success]
> 2017-02-27 17:50:31,462 (http-0.0.0.0-443-10) [     RequestHandler.java:641:INFO ] Ran Event [java:org.ofbiz.webapp. control.ProtectViewWorker# checkProtectedView] from [preprocessor], result is [success]
> 2017-02-27 17:50:31,473 (http-0.0.0.0-443-10) [   SOAPEventHandler.java:160:INFO ] Request Message:
> <?xml version="1.0" encoding="utf-8"?><env: Envelope xmlns:env="http://www.w3.org/ 2003/05/soap-envelope" xmlns:ns1="http://ofbiz. apache.org/service/"><env: Body><ns1:testSoap><map-Map>< map-Entry></map-Entry><map- Entry></map-Entry><map-Entry>< /map-Entry><map-Entry></map- Entry><map-Entry></map-Entry>< map-Entry></map-Entry><map- Entry></map-Entry></map-Map></ ns1:testSoap></env:Body></env: Envelope>
>
> 2017-02-27 17:50:31,486 (http-0.0.0.0-443-10) [   SOAPEventHandler.java:261:INFO ] Response Message:
> <?xml version="1.0" encoding="utf-8"?><soapenv: Envelope xmlns:soapenv="http://schemas. xmlsoap.org/soap/envelope/">< soapenv:Body><Response><map- Map>
>          <map-Entry>
>              <map-Key>
>                  <std-String value="errorMessage"></std- String>
>              </map-Key>
>              <map-Value>
>                  <null></null>
>              </map-Value>
>          </map-Entry>
>      </map-Map></Response></ soapenv:Body></soapenv: Envelope>
>
> 2017-02-27 17:50:31,488 (http-0.0.0.0-443-10) [     RequestHandler.java:421:ERROR] Request SOAPService caused an error with the following message: Error calling event: org.ofbiz.webapp.event. EventHandlerException
> 2017-02-27 17:50:31,488 (http-0.0.0.0-443-10) [       ServerHitBin.java:628:INFO ] Visit delegatorName=default, ServerHitBin delegatorName=default
> 2017-02-27 17:50:31,530 (http-0.0.0.0-443-10) [       ServerHitBin.java:722:INFO ] Duplicate ServerHit was updated: [GenericEntity:ServerHit][ contentId,webtools. SOAPService(java.lang.String)] [createdStamp,2017-02-27 17:50:31.492(java.sql. Timestamp)][createdTxStamp, 2017-02-27 17:50:31.489(java.sql. Timestamp)][hitStartDateTime, 2017-02-27 17:50:31.364(java.sql. Timestamp)][hitTypeId,REQUEST( java.lang.String)][ lastUpdatedStamp,2017-02-27 17:50:31.492(java.sql. Timestamp)][ lastUpdatedTxStamp,2017-02-27 17:50:31.489(java.sql. Timestamp)][referrerUrl,(java. lang.String)][requestUrl,https ://107.180.69.62/webtools/ control/SOAPService(java.lang. String)][runningTimeMillis, 124(java.lang.Long)][ serverHostName,s107-180-69-62. secureserver.net(java.lang. String)][serverIpAddress,107. 180.69.62(java.lang.String)][ visitId,11055(java.lang. String)]
> 2017-02-27 17:50:31,530 (http-0.0.0.0-443-10) [     ControlServlet.java:328:INFO ] [[[SOAPService] Request Done- total:0.166,since last([SOAPService] Req...):0.166]]
>
>
>
>
>