Skip to end of metadata
Go to start of metadata

*** This is a draft version ***

1.Create ABAP proxy:
Go to transaction code SPROXY  / SPROXY_START / SE80 -> create Enterprise Service to generate outside-in proxies (both client proxy and server proxy)
refer also to "useful links" below, and the application help for proxy objects:
 -> open any existing proxy object
  -> click on the icon 'Tips & tricks' (or 'Shift + F1')
   -> choose  'Generation Tips'.
In case of error during generation:
- check if the WSDL is well-formed and references/imports in the WSDL can be resolved
- test the WSDL using the report RSSIDL_DESERIALIZE_DEMO
- check the WSDL against restrictions documented in note: 944029 - XML schema supported by ABAP proxy generation (release dependent)?
- is the WSDL WS-I basic profile compatible?

typical problems  with: xsd:any, xsd:choice,  array types, recursions

 

2. connection to ESR does not work (only local data visible)/ UNCAUGHT_EXCEPTION - CX_SRAPI_PRECONDITION_VIOLATED dump occurs in TA SPROXY:
http://help.sap.com/saphelp_nw04/helpdata/en/ba/f21a403233dd5fe10000000a155106/frameset.htm
testreports:
  SPROX_CHECK_IFR_ADDRESS (SM59 SAP_PROXY_ESR)
  SPROX_CHECK_HTTP_COMMUNICATION
  SPROX_CHECK_IFR_RESPONSE

 - check whether rfc destination SAP_PROXY_ESR exists
 - doublecheck targetr host + port + prefix (check it in a browser too)
 - check under logon tab if user is maintained
 - check authorization of the user
 - check whether the user is locked
 - the password of the maintained user should not be initial

debugger:  e.g check HTTP response:
CL_SRAPI_SERVICE_REP_ADDRESS  GET_SERVICE_REPOSITORY
CL_HMI_HTTP_CLIENT_IMPL  SEND_REQUEST  

 
3. Transformation problems:
1293547 Help for supporting XML, XSLT and Simple Transformations
927276  Generating and testing transformations
1390832 Problems with "disappeared" STs/XSLTs
test stylesheet (enforce generation) #927276
IF_PROXY_STYLESHEET~GENERATE

report: SPROX_STYLESHEET_TEST
RS_RETRIEVE_XSLT report: #1390832 ujrageneral st-ket
RS_ST_DEPENDENCIES

TA STRANS

IF_SXML_SERIALIZABLE~SERIALIZE (CL_SXMLP_DATA_ST)
IF_SXML_SERIALIZABLE~DESERIALIZE (CL_SXMLP_DATA_ST) 

in case of client proxy call:
9  METHOD EXECUTE CL_PROXY_OUTBOUND_ADAPTER_WS==CP  CL_PROXY_OUTBOUND_ADAPTER_WS==CM001 17
8  METHOD IF_PROXY_FRAMEWORK_OUTBOUND~CALL_EXECUTE_OUT CL_PROXY_OUTBOUND_ADAPTER=====CP  CL_PROXY_OUTBOUND_ADAPTER=====CM00B 160
7  METHOD IF_PROXY_CLIENT~EXECUTE CL_PROXY_CLIENT===============CP  CL_PROXY_CLIENT===============CM002 126
 
 

4. Runtime errors:
Use ICM trace or SICF trace/recorder to verify the HTTP messages:
Increase icm trace to level 3 (TA SMICM -> Goto -> Trace level -> Set) and reproduce the incident. Analyse the icm trace (dev_icm file in 'work' folder).

Synchronous Inbound Messages:
set an external BREAKPOINT <classname>-><interfacename>~EXECUTE_SYCHRONOUS (as of release 71x the name of the method is defined in ESR)
Asynchronous Inbound Messages:
Asynchronous inbound proxies are processed using QRFC inbound queues. The QRFC inbound queue is processed periodically by the QRFC scheduler. To enable a BREAKPOINT to be used on the server side, you must deregister the inbound queue in question so that it is not processed automatically.

also refer to guides:
How To… Debug XI Applications
http://scn.sap.com/docs/DOC-16026

XI: Debug your inbound ABAP Proxy implementation
http://scn.sap.com/people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation

Error handling framework for ABAP proxies - Part 1
http://scn.sap.com/community/pi-and-soa-middleware/blog/2008/11/02/error-handling-framework-for-abap-proxies--part-1

 

5. issues in release 620:
52505 - Support after end of mainstream/extended maintenance
1029220 End of mainstream maintenance for SAP XI 2.0.

 

6. SWCVs not visible in SPROXY:
If a SWCV that has been created in the SLD is not visible in the navigation tree in transaction SPROXY, note the following:

  • SAP components (Vendor = 'sap.com'):
    The navigation tree only displays the software component versions that are installed in this system (see table CVERS, or choose System -> Status... and then the Component information pushbutton).
  • Non-SAP components (Vendor is not 'sap.com'):
    All components are displayed.

 

7. 

Proxy generation does not support RPC style WSDL itself.
The soap:binding element has two attributes - style and transport.

The style attribute can be "rpc" or "document". In this case we use document. The transport attribute defines the SOAP protocol to use. In this case we use HTTP.
<binding type="glossaryTerms" name="b1">
   <soap:binding style="document"
   transport="http://schemas.xmlsoap.org/soap/http" />
   <operation>
     <soap:operation soapAction="http://example.com/getTerm"/>
     <input><soap:body use="literal"/></input>
     <output><soap:body use="literal"/></output>
  </operation>
</binding>

RPC style web service uses the names of the method and its parameters to generate XML structures that represent a method’s call stack. While document style indicates that the SOAP body contains a XML document which can be validated against pre-defined XML schema document.

 

Useful notes:
1229048 - Proxy Generation Trouble Shooting
1169688 SP14 Delta
1053030 Proxy changes/delivery in maintenance
1169688 - New Features in Release 7.0 (SP14)
1242795 Mapping of XSD default values by ABAP Proxy
1241442 - How to display VersionID for proxy
1006665 - Checklist for creating a Web Service message 

 

Useful links:
Working with ABAP Proxies
http://help.sap.com/saphelp_nw73ehp1/helpdata/en/e6/6d0f3fb35c48fa9fdf5f4e70d9f37d/content.htm

Programming with Client and Server Proxies
http://help.sap.com/saphelp_nw70/helpdata/en/9b/dad1ae3908ee44a5caf57e10918be9/frameset.htm

Web Services
http://help.sap.com/saphelp_nw70/helpdata/en/9b/dad1ae3908ee44a5caf57e10918be9/frameset.htm

Providing a Web Service
http://help.sap.com/saphelp_nw73ehp1/helpdata/en/47/a9903ea2634847e10000000a421138/content.htm

https://wiki.wdf.sap.corp/wiki/display/PTGSOA/Proxy+Generation#ProxyGeneration-GeneratingProxiesintheBackendSystem

 

  • No labels