ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Schema Problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Schema Problem

    Hello,

    Im trying to use a schema to extract data from a web service, but Im getting an error that I dont understand.

    The error occurs on a certain section of the schema.

    <message name="getDocuments">
    <part name="parameters" element="tns:getDocuments">
    </part>
    </message>

    [Part: name=parameters
    elementName={http://www8.ccni.cl/WservicebkblWeb/DocumentCompassWSService}getDocuments]
    PartType getDocuments
    Exception in thread "Thread-0" java.lang.RuntimeException: part type {http://www8.ccni.cl/WservicebkblWeb/DocumentCompassWSSe
    e}getDocuments not supported in this sample

  • #2
    Re: Schema Problem

    How can getDocuments be a part of itself?

    Comment


    • #3
      Re: Schema Problem

      This is a our customers webservice and schema. Ive gone through the java code and it's expecting a data type there (string, int, double ...)

      The getDocuments is the service method that is run, But Im not up on schema's enough to determine what should go there.

      The actual input is an xml file on the ifs

      Comment


      • #4
        Re: Schema Problem

        I changed the schema to be: and it appears to work...
        <message name="getDocuments">
        <part name="parameters" type="xsd:string">
        </part>
        </message>

        Now it says it cant find the endpoint, but I can reach the endpoint via my browser. And I can get to it via the eclipse webservice explorer.


        http://www8.ccni.cl/WservicebkblWeb/...mpassWSService.

        Can an axis-2 method be called via axis?

        Comment


        • #5
          Re: Schema Problem

          I finally figured this stuff out. Now I know why they came up with RESTful services, it's MUCH easier. If anyone needs any help with axis and axis2, contact me.

          Comment

          Working...
          X