cancel
Showing results for 
Search instead for 
Did you mean: 

Access Denied with Business Connector 4.7

weltspion
Participant
0 Kudos

Dear SAPiens,

I am trying to call a RFC-FM via a webservice from outside the SAP system via Business Connector 4.7. I always get a "Access Denied" Error message within the XML answer-envelope.

For testing I use the soapUI. I downloaded the WSDL from the Business Connector Developer and imported it to soapUI.

In soapUI I used the following coding for execution in a testcase:


<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mob="http://172.16.34.33/MobileDataEntry" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
   <soapenv:Header/>
   <soapenv:Body>
      <mob:CustomerOrderCreate soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
         <DISTR_CHAN xsi:type="xsd:string">01</DISTR_CHAN>
         <DIVISION xsi:type="xsd:string">00</DIVISION>
         <DOC_TYPE xsi:type="xsd:string">ZMDE</DOC_TYPE>
         <PARTN_NUMB xsi:type="xsd:string">0000102642</PARTN_NUMB>
         <PARTN_ROLE xsi:type="xsd:string">AG</PARTN_ROLE>
         <REQ_DATE_H xsi:type="xsd:string">20080420</REQ_DATE_H>
         <SALES_ORG xsi:type="xsd:string">4920</SALES_ORG>
         <MATERIAL xsi:type="non:MATERIAL" soapenc:arrayType="non:MATERIALArrayItem[]" xmlns:non="http://www.webMethods.com/noNamespace/"/>
         <RETURN xsi:type="non:RETURN" soapenc:arrayType="non:RETURNArrayItem[]" xmlns:non="http://www.webMethods.com/noNamespace/"/>
      </mob:CustomerOrderCreate>
   </soapenv:Body>
</soapenv:Envelope>

The given answer is:


<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
   <SOAP-ENV:Body>
      <SOAP-ENV:Fault>
         <faultcode>SOAP-ENV:Client</faultcode>
         <faultstring>[B2BSERV.0088.9134] Exception occurred while processing the body of the message</faultstring>
         <faultactor><a href="http://172.16.34.33:5555/soap/rpc" TARGET="test_blank">http://172.16.34.33:5555/soap/rpc</a></faultactor>
         <detail xmlns:webM="http://www.webMethods.com/2001/10/soap/encoding">
            <webM:exception>
               <webM:className>com.wm.app.b2b.server.AccessException</webM:className>
               <webM:message xml:lang="en">[B2BSERV.0084.9004] Access Denied</webM:message>
            </webM:exception>
         </detail>
      </SOAP-ENV:Fault>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I can call the function module without any problem from the Busines Connector Developer IDE.

I also can call the function without any problems in this way (by passing my credentials manually):


http://172.16.34.33:5555/invoke/MobileDataEntry/CustomerOrderCreate?DISTR_CHAN=01&DIVISION=00&DOC_TYPE=ZMDE&PARTN_NUMB=0000102642&PARTN_ROLE=AG&REQ_DATE_H=20080420&SALES_ORG=4920

Do you have any idea what is going wrong? Why do I get "Access Denied"? What causes this?

Best regards

Torsten

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Torsten,

you get this error because SAP BC rejects the call from this "soapUI" (whatever that is). You need to pass the BC user/pwd parameters with this SOAP call to BC, because your BC service MobileDataEntry/CustomerOrderCreate is ACL-protected (Access Control List).

Alternatively you could set the ACL for your service to "Anonymous" but this is probably not what you want. You can contact me for further questions.

Regards,

Christian Sy

weltspion
Participant
0 Kudos

Hi Christian,

this solved my problem two weeks ago.

I actually run the solution with 'Anonymous' access, as I don't know how to submit the Username with soapUI (header entry does not work). soapUI is a generic SOAP testing frontend (see soapui.com).

Everything of our solution is under development at this time. I guess, that the final client service will not deal with those problems.

Nevertheless, you get the points...

Best regards

Torsten

Answers (0)