Thank you very much, Michael.

I have updated the following files:

   - /framework/webtools/webapp/webtools/WEB-INF/controller.xml
   - /framework/service/config/serviceengine.xml
   framework/service/config/serviceengine.xml
   - /framework/common/webcommon/WEB-INF/handlers-controller.xml

The "getAllCategories" web service works.
However "getInvoices" and "createInvoice" give an error:

   - 18.12: *org.apache.ofbiz.service.ServiceAuthException: You must be
   logged in to complete the [Accounting invoice permission logic] process.*
   - 22.01: *org.apache.ofbiz.service.ServiceAuthException: You haven't the
   permission for the service getInvoice, reason : User login is missing*

The input XML:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ser="http://ofbiz.apache.org/service/";>
   <soapenv:Header/>
   <soapenv:Body>
      <ser:getInvoice>
         <map-Map>
            <ser:map-Entry>
               <ser:map-Key>
                  <ser:std-String value="login.password"/>
               </ser:map-Key>
               <ser:map-Value>
                  <ser:std-String value="admin"/>
               </ser:map-Value>
               <ser:map-Key>
                  <ser:std-String value="login.username"/>
               </ser:map-Key>
               <ser:map-Value>
                  <ser:std-String value="ofbiz"/>
               </ser:map-Value>
               <ser:map-Key>
                  <ser:std-String value="invoiceId"/>
               </ser:map-Key>
               <ser:map-Value>
                  <ser:std-String value="8010"/>
               </ser:map-Value>
            </ser:map-Entry>
         </map-Map>
      </ser:getInvoice>
   </soapenv:Body>
</soapenv:Envelope>


By the way, how could I pass an "org.apache.ofbiz.entity.GenericValue"
parameter in the XML?

Greetings.

<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Libre
de virus. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

Reply via email to