IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.


#TechXchangePresenter
 View Only
Expand all | Collapse all

500 error when invoke BAPI service

  • 1.  500 error when invoke BAPI service

    Posted Wed May 21, 2003 09:02 PM

    So I created a BAPI service thru SAP Adapter(function lookup, etc). When I invoke this BAPI service from a wsdl client, I got the error of: java.io.IOException: Server returned HTTP response code: 500 for URL: http://10.1.32.37:5555/soap/rpc;

    Please note I have already make sure this BAPI service is allowed for anonymous access. So access should not be a problem.

    Can anybody shed some lights?

    Thanks in advance.

    Here is .wsdl:

    <?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions name="http://yyin-lt2/SAPTest1" targetNamespace="http://yyin-lt2/"
    xmlns:webM="http://www.webMethods.com/noNamespace/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
    xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
    xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:tns="http://yyin-lt2/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
    

    <xsd:schema
    targetNamespace=“API Integration Platform | Software AG
    xmlns=“API Integration Platform | Software AG
    xmlns:xsd=“XML Schema
    xmlns:SOAP-ENC=“http://schemas.xmlsoap.org/soap/encoding/” >
    <xsd:import namespace=“http://schemas.xmlsoap.org/soap/encoding/” schemaLocation=“http://schemas.xmlsoap.org/soap/encoding/”/>
    <xsd:complexType name=“ADJUST_STATUS_RA”>
    xsd:complexContent
    <xsd:restriction base=“SOAP-ENC:Array”>
    <xsd:attribute ref=“SOAP-ENC:arrayType” wsdl:arrayType=“ADJUST_STATUS_RAArrayItem”/>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name=“BATCH_RA”>
    xsd:complexContent
    <xsd:restriction base=“SOAP-ENC:Array”>
    <xsd:attribute ref=“SOAP-ENC:arrayType” wsdl:arrayType=“BATCH_RAArrayItem”/>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name=“COUNT_STATUS_RA”>
    xsd:complexContent
    <xsd:restriction base=“SOAP-ENC:Array”>
    <xsd:attribute ref=“SOAP-ENC:arrayType” wsdl:arrayType=“COUNT_STATUS_RAArrayItem”/>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name=“FISCALYEAR_RA”>
    xsd:complexContent
    <xsd:restriction base=“SOAP-ENC:Array”>
    <xsd:attribute ref=“SOAP-ENC:arrayType” wsdl:arrayType=“FISCALYEAR_RAArrayItem”/>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name=“GROUPING_CRIT_RA”>
    xsd:complexContent
    <xsd:restriction base=“SOAP-ENC:Array”>
    <xsd:attribute ref=“SOAP-ENC:arrayType” wsdl:arrayType=“GROUPING_CRIT_RAArrayItem”/>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name=“HEADERS”>
    xsd:complexContent
    <xsd:restriction base=“SOAP-ENC:Array”>
    <xsd:attribute ref=“SOAP-ENC:arrayType” wsdl:arrayType=“HEADERSArrayItem”/>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name=“ITEMS”>
    xsd:complexContent
    <xsd:restriction base=“SOAP-ENC:Array”>
    <xsd:attribute ref=“SOAP-ENC:arrayType” wsdl:arrayType=“ITEMSArrayItem”/>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name=“MATERIAL_RA”>
    xsd:complexContent
    <xsd:restriction base=“SOAP-ENC:Array”>
    <xsd:attribute ref=“SOAP-ENC:arrayType” wsdl:arrayType=“MATERIAL_RAArrayItem”/>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name=“PHYSINVENTORY_RA”>
    xsd:complexContent
    <xsd:restriction base=“SOAP-ENC:Array”>
    <xsd:attribute ref=“SOAP-ENC:arrayType” wsdl:arrayType=“PHYSINVENTORY_RAArrayItem”/>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name=“PHYS_INV_NO_RA”>
    xsd:complexContent
    <xsd:restriction base=“SOAP-ENC:Array”>
    <xsd:attribute ref=“SOAP-ENC:arrayType” wsdl:arrayType=“PHYS_INV_NO_RAArrayItem”/>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name=“PLANT_RA”>
    xsd:complexContent
    <xsd:restriction base=“SOAP-ENC:Array”>
    <xsd:attribute ref=“SOAP-ENC:arrayType” wsdl:arrayType=“PLANT_RAArrayItem”/>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name=“PLAN_DATE_RA”>
    xsd:complexContent
    <xsd:restriction base=“SOAP-ENC:Array”>
    <xsd:attribute ref=“SOAP-ENC:arrayType” wsdl:arrayType=“PLAN_DATE_RAArrayItem”/>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name=“RETURN”>
    xsd:complexContent
    <xsd:restriction base=“SOAP-ENC:Array”>
    <xsd:attribute ref=“SOAP-ENC:arrayType” wsdl:arrayType=“RETURNArrayItem”/>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name=“STGE_LOC_RA”>
    xsd:complexContent
    <xsd:restriction base=“SOAP-ENC:Array”>
    <xsd:attribute ref=“SOAP-ENC:arrayType” wsdl:arrayType=“STGE_LOC_RAArrayItem”/>
    </xsd:restriction>
    </xsd:complexContent>
    </xsd:complexType>
    <xsd:complexType name=“PLAN_DATE_RAArrayItem”>
    xsd:sequence
    <xsd:element name=“SIGN” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“OPTION” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“LOW” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“HIGH” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:any processContents=“lax” minOccurs=“0” maxOccurs=“unbounded”/>
    </xsd:sequence>
    <xsd:anyAttribute processContents=“lax”/>
    </xsd:complexType>
    <xsd:element name=“PLAN_DATE_RA” type=“PLAN_DATE_RAArrayItem” />
    <xsd:complexType name=“MATERIAL_RAArrayItem”>
    xsd:sequence
    <xsd:element name=“SIGN” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“OPTION” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“LOW” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“HIGH” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:any processContents=“lax” minOccurs=“0” maxOccurs=“unbounded”/>
    </xsd:sequence>
    <xsd:anyAttribute processContents=“lax”/>
    </xsd:complexType>
    <xsd:element name=“MATERIAL_RA” type=“MATERIAL_RAArrayItem” />
    <xsd:complexType name=“PHYSINVENTORY_RAArrayItem”>
    xsd:sequence
    <xsd:element name=“SIGN” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“OPTION” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“LOW” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“HIGH” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:any processContents=“lax” minOccurs=“0” maxOccurs=“unbounded”/>
    </xsd:sequence>
    <xsd:anyAttribute processContents=“lax”/>
    </xsd:complexType>
    <xsd:element name=“PHYSINVENTORY_RA” type=“PHYSINVENTORY_RAArrayItem” />
    <xsd:complexType name=“ADJUST_STATUS_RAArrayItem”>
    xsd:sequence
    <xsd:element name=“SIGN” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“OPTION” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“LOW” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“HIGH” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:any processContents=“lax” minOccurs=“0” maxOccurs=“unbounded”/>
    </xsd:sequence>
    <xsd:anyAttribute processContents=“lax”/>
    </xsd:complexType>
    <xsd:element name=“ADJUST_STATUS_RA” type=“ADJUST_STATUS_RAArrayItem” />
    <xsd:complexType name=“ITEMSArrayItem”>
    xsd:sequence
    <xsd:element name=“PHYSINVENTORY” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“FISCALYEAR” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“ITEM” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“MATERIAL” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“PLANT” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“STGE_LOC” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“BATCH” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“SPEC_STOCK” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“STOCK_TYPE” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“SALES_ORD” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“S_ORD_ITEM” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“SCHED_LINE” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“VENDOR” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“CUSTOMER” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“PRODBINLOC” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“CHANGE_USER” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“CHANGE_DATE” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“COUNT_USER” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“COUNT_DATE” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“PSTNG_NAME” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“PSTNG_DATE” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“PH_INV_REF” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“COUNTED” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“DIFF_POSTED” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“RECOUNT” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“DELETE_IND” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“ALT_UNIT” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“BOOK_QTY” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“ZERO_COUNT” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“QUANTITY” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“BASE_UOM” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“BASE_UOM_ISO” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“ENTRY_QNT” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“ENTRY_UOM” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“ENTRY_UOM_ISO” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“MAT_DOC” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“DOC_YEAR” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“MATDOC_ITM” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“RECOUNTDOC” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“DIFFERENCE” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“CURRENCY” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“CURRENCY_ISO” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“CC_PH_INV” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“WBS_ELEMENT” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“SV_INC_VAT” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“SALES_VAL” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“BOOK_VALUE” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“VO_MAT” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“SV_W_O_VAT” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“DIFFSALCNTVAT” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“DIFFSALCNT” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“VALCOUNTQNT” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“VALBOOKAMT” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“DIFF_VALUE” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“REASON” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“MATERIAL_EXTERNAL” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“MATERIAL_GUID” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“MATERIAL_VERSION” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:any processContents=“lax” minOccurs=“0” maxOccurs=“unbounded”/>
    </xsd:sequence>
    <xsd:anyAttribute processContents=“lax”/>
    </xsd:complexType>
    <xsd:element name=“ITEMS” type=“ITEMSArrayItem” />
    <xsd:complexType name=“PLANT_RAArrayItem”>
    xsd:sequence
    <xsd:element name=“SIGN” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“OPTION” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“LOW” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“HIGH” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:any processContents=“lax” minOccurs=“0” maxOccurs=“unbounded”/>
    </xsd:sequence>
    <xsd:anyAttribute processContents=“lax”/>
    </xsd:complexType>
    <xsd:element name=“PLANT_RA” type=“PLANT_RAArrayItem” />
    <xsd:complexType name=“FISCALYEAR_RAArrayItem”>
    xsd:sequence
    <xsd:element name=“SIGN” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“OPTION” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“LOW” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“HIGH” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:any processContents=“lax” minOccurs=“0” maxOccurs=“unbounded”/>
    </xsd:sequence>
    <xsd:anyAttribute processContents=“lax”/>
    </xsd:complexType>
    <xsd:element name=“FISCALYEAR_RA” type=“FISCALYEAR_RAArrayItem” />
    <xsd:complexType name=“COUNT_STATUS_RAArrayItem”>
    xsd:sequence
    <xsd:element name=“SIGN” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“OPTION” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“LOW” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“HIGH” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:any processContents=“lax” minOccurs=“0” maxOccurs=“unbounded”/>
    </xsd:sequence>
    <xsd:anyAttribute processContents=“lax”/>
    </xsd:complexType>
    <xsd:element name=“COUNT_STATUS_RA” type=“COUNT_STATUS_RAArrayItem” />
    <xsd:complexType name=“HEADERSArrayItem”>
    xsd:sequence
    <xsd:element name=“PHYSINVENTORY” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“FISCALYEAR” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“EVENT_TYPE” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“PLANT” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“STGE_LOC” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“SPEC_STOCK” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“DOC_DATE” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“PLAN_DATE” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“COUNT_DATE” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“PSTNG_DATE” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“FIS_PERIOD” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“USERNAME” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“POST_BLOCK” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“COUNT_STATUS” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“ADJUST_STATUS” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“PHYS_INV_REF” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“DELETE_STATUS” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“FREEZEBOOKINV” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“GROUPING_TYPE” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“GROUPING_CRIT” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“PHYS_INV_NO” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:any processContents=“lax” minOccurs=“0” maxOccurs=“unbounded”/>
    </xsd:sequence>
    <xsd:anyAttribute processContents=“lax”/>
    </xsd:complexType>
    <xsd:element name=“HEADERS” type=“HEADERSArrayItem” />
    <xsd:complexType name=“GROUPING_CRIT_RAArrayItem”>
    xsd:sequence
    <xsd:element name=“SIGN” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“OPTION” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“LOW” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“HIGH” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:any processContents=“lax” minOccurs=“0” maxOccurs=“unbounded”/>
    </xsd:sequence>
    <xsd:anyAttribute processContents=“lax”/>
    </xsd:complexType>
    <xsd:element name=“GROUPING_CRIT_RA” type=“GROUPING_CRIT_RAArrayItem” />
    <xsd:complexType name=“BATCH_RAArrayItem”>
    xsd:sequence
    <xsd:element name=“SIGN” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“OPTION” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“LOW” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“HIGH” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:any processContents=“lax” minOccurs=“0” maxOccurs=“unbounded”/>
    </xsd:sequence>
    <xsd:anyAttribute processContents=“lax”/>
    </xsd:complexType>
    <xsd:element name=“BATCH_RA” type=“BATCH_RAArrayItem” />
    <xsd:complexType name=“RETURNArrayItem”>
    xsd:sequence
    <xsd:element name=“TYPE” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“ID” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“NUMBER” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“MESSAGE” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“LOG_NO” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“LOG_MSG_NO” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“MESSAGE_V1” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“MESSAGE_V2” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“MESSAGE_V3” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“MESSAGE_V4” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“PARAMETER” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“ROW” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“FIELD” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“SYSTEM” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:any processContents=“lax” minOccurs=“0” maxOccurs=“unbounded”/>
    </xsd:sequence>
    <xsd:anyAttribute processContents=“lax”/>
    </xsd:complexType>
    <xsd:element name=“RETURN” type=“RETURNArrayItem” />
    <xsd:complexType name=“STGE_LOC_RAArrayItem”>
    xsd:sequence
    <xsd:element name=“SIGN” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“OPTION” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“LOW” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“HIGH” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:any processContents=“lax” minOccurs=“0” maxOccurs=“unbounded”/>
    </xsd:sequence>
    <xsd:anyAttribute processContents=“lax”/>
    </xsd:complexType>
    <xsd:element name=“STGE_LOC_RA” type=“STGE_LOC_RAArrayItem” />
    <xsd:complexType name=“PHYS_INV_NO_RAArrayItem”>
    xsd:sequence
    <xsd:element name=“SIGN” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“OPTION” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“LOW” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:element name=“HIGH” type=“xsd:string” minOccurs=“1” maxOccurs=“1”/>
    <xsd:any processContents=“lax” minOccurs=“0” maxOccurs=“unbounded”/>
    </xsd:sequence>
    <xsd:anyAttribute processContents=“lax”/>
    </xsd:complexType>
    <xsd:element name=“PHYS_INV_NO_RA” type=“PHYS_INV_NO_RAArrayItem” />
    </xsd:schema>
    </wsdl:types>

    <wsdl:message name="bapi_matphysinv_getitemsInput">
    <wsdl:part name="ADJUST_STATUS_RA" type="webM:ADJUST_STATUS_RA"/>
    <wsdl:part name="BATCH_RA" type="webM:BATCH_RA"/>
    <wsdl:part name="COUNT_STATUS_RA" type="webM:COUNT_STATUS_RA"/>
    <wsdl:part name="FISCALYEAR_RA" type="webM:FISCALYEAR_RA"/>
    <wsdl:part name="GROUPING_CRIT_RA" type="webM:GROUPING_CRIT_RA"/>
    <wsdl:part name="HEADERS" type="webM:HEADERS"/>
    <wsdl:part name="ITEMS" type="webM:ITEMS"/>
    <wsdl:part name="MATERIAL_RA" type="webM:MATERIAL_RA"/>
    <wsdl:part name="PHYSINVENTORY_RA" type="webM:PHYSINVENTORY_RA"/>
    <wsdl:part name="PHYS_INV_NO_RA" type="webM:PHYS_INV_NO_RA"/>
    <wsdl:part name="PLANT_RA" type="webM:PLANT_RA"/>
    <wsdl:part name="PLAN_DATE_RA" type="webM:PLAN_DATE_RA"/>
    <wsdl:part name="RETURN" type="webM:RETURN"/>
    <wsdl:part name="STGE_LOC_RA" type="webM:STGE_LOC_RA"/>
    </wsdl:message>
    
    <wsdl:message name="bapi_matphysinv_getitemsOutput">
    <wsdl:part name="ADJUST_STATUS_RA" type="webM:ADJUST_STATUS_RA"/>
    <wsdl:part name="BATCH_RA" type="webM:BATCH_RA"/>
    <wsdl:part name="COUNT_STATUS_RA" type="webM:COUNT_STATUS_RA"/>
    <wsdl:part name="FISCALYEAR_RA" type="webM:FISCALYEAR_RA"/>
    <wsdl:part name="GROUPING_CRIT_RA" type="webM:GROUPING_CRIT_RA"/>
    <wsdl:part name="HEADERS" type="webM:HEADERS"/>
    <wsdl:part name="ITEMS" type="webM:ITEMS"/>
    <wsdl:part name="MATERIAL_RA" type="webM:MATERIAL_RA"/>
    <wsdl:part name="PHYSINVENTORY_RA" type="webM:PHYSINVENTORY_RA"/>
    <wsdl:part name="PHYS_INV_NO_RA" type="webM:PHYS_INV_NO_RA"/>
    <wsdl:part name="PLANT_RA" type="webM:PLANT_RA"/>
    <wsdl:part name="PLAN_DATE_RA" type="webM:PLAN_DATE_RA"/>
    <wsdl:part name="RETURN" type="webM:RETURN"/>
    <wsdl:part name="STGE_LOC_RA" type="webM:STGE_LOC_RA"/>
    </wsdl:message>
    <wsdl:portType name="http___yyin-lt2_SAPTest1PortType">
    <wsdl:operation name="bapi_matphysinv_getitems">
    <wsdl:input message="tns:bapi_matphysinv_getitemsInput"/>
    <wsdl:output message="tns:bapi_matphysinv_getitemsOutput"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="http___yyin-lt2_SAPTest1Binding" type="tns:http___yyin-lt2_SAPTest1PortType">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="rpc"/>
    <wsdl:operation name="bapi_matphysinv_getitems">
    <soap:operation soapAction=""/>
    <wsdl:input>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yyin-lt2/SAPTest1" use="encoded"/>
    </wsdl:input>
    <wsdl:output>
    <soap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://yyin-lt2/SAPTest1" use="encoded"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="http___yyin-lt2_SAPTest1Service">
    <wsdl:port name="http___yyin-lt2_SAPTest1Port0" binding="tns:http___yyin-lt2_SAPTest1Binding">
    <soap:address location="http://10.1.32.37:5555/soap/rpc"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    

    #Adapters-and-E-Standards
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: 500 error when invoke BAPI service

    Posted Thu May 22, 2003 07:53 PM

    With this .wsdl, when I use Axis 1.0 WSDL2Java to generate java code, and then write a client code to invoke the service, I got the following SOAP Fault on the client. Please also find the exception thrown on the IS side afterward.

    Thanks in advance if you have any clue of the problem.

    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
    faultString: [B2BSERV.0088.9134] Exception occurred while processing the body of the message
    faultActor: http://yyin-lt2:5555/soap/rpc
    faultDetail:
    exception:
    ns1:classNamejava.lang.RuntimeException</ns1:className>
    <ns1:message xml:lang=“en-US” xmlns:xml=“http://www.w3.org/XML/1998/
    namespace”/>

    [B2BSERV.0088.9134] Exception occurred while processing the body of the message
    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.
    java:135)
    at org.apache.axis.encoding.DeserializationContextImpl.endElement(Deseri
    alizationContextImpl.java:942)
    at org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXPar
    ser.java:579)
    at org.apache.xerces.impl.XMLNamespaceBinder.handleEndElement(XMLNamespa
    ceBinder.java:897)
    at org.apache.xerces.impl.XMLNamespaceBinder.endElement(XMLNamespaceBind
    er.java:643)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDVal
    idator.java:1972)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator
    .java:878)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.handleEndElemen
    t(XMLDocumentFragmentScannerImpl.java:1144)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(
    XMLDocumentFragmentScannerImpl.java:987)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
    Dispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1445)
    at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
    LDocumentFragmentScannerImpl.java:333)
    at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
    a:524)
    at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.jav
    a:580)
    at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.j
    ava:1169)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:394)
    at org.apache.axis.encoding.DeserializationContextImpl.parse(Deserializa
    tionContextImpl.java:232)
    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:546)
    at org.apache.axis.Message.getSOAPEnvelope(Message.java:377)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2132)
    at org.apache.axis.client.Call.invoke(Call.java:2102)
    at org.apache.axis.client.Call.invoke(Call.java:1851)
    at org.apache.axis.client.Call.invoke(Call.java:1777)
    at org.apache.axis.client.Call.invoke(Call.java:1315)
    at wm.samples.Http___YyinLt2_SAPTest1BindingStub.bapi_Matphysinv_Getitem
    s(Http___YyinLt2_SAPTest1BindingStub.java:322)
    at wm.samples.GetBAPIItemsClient.main(GetBAPIItemsClient.java:44)
    [INFO] enterprise - -Mapping Exception to AxisFault <[B2BSERV.0088.9134] Excepti
    on occurred while processing the body of the message>

    Exception thrown on the IS side:

    2003-05-22 17:06:58 PDT [B2BSERV.0088.9134] Exception occurred while processing the body of the message
    at com.wm.util.LocalizedException.(LocalizedException.java:73)
    at com.wm.app.b2b.server.ServerException.(ServerException.java:51)
    at com.wm.app.b2b.server.ServiceException.(ServiceException.java:39)
    at com.wm.app.b2b.server.SOAPException.(Unknown Source)
    at wm.server.soap.rpc(soap.java:332)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.wm.app.b2b.server.JavaService.baseInvoke(JavaService.java:281)
    at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:688)
    at com.wm.app.b2b.server.ServiceManager.invoke(ServiceManager.java:480)
    at com.wm.app.b2b.server.HTTPSOAPHandler.process(Unknown Source)
    at com.wm.app.b2b.server.HTTPDispatch.run(HTTPDispatch.java:457)
    at com.wm.util.pool.PooledThread.run(PooledThread.java:103)
    at java.lang.Thread.run(Thread.java:498)


    #Integration-Server-and-ESB
    #Adapters-and-E-Standards
    #webMethods