[Webinar] Streamline your web hosting managementRegister Today

x
?
Solved

Unexpected subelement error message

Posted on 2008-01-27
3
Medium Priority
?
1,332 Views
Last Modified: 2013-12-22
Hi experts,

I am trying out a simple web service client.  I generated the client code using axis2 wsdl2java tool.  Then when I try to connect to the server, I am getting an error saying that
java.lang.RuntimeException: java.lang.RuntimeException: Unexpected subelement StartProvisioningResult

I am stuck with this.  Could someone tell me why I get this error?

0
Comment
Question by:ambuli
  • 2
3 Comments
 
LVL 17

Accepted Solution

by:
krakatoa earned 2000 total points
ID: 20755216
0
 

Author Comment

by:ambuli
ID: 20755564
Thanks.  The following is from the wsdl file.  The server side is not controlled by me, and I assume that it is correctly setup as others are using it.  I generated the code using

wsdl2java.bat -uri C:\test\provision.wsdl -o C:\test\code -d adb -s -ss -sd -g -wv 1.1

command.  I cannot see what is wrong here.


<s:schema elementFormDefault="qualified" targetNamespace="http://abcd.com/provisioning/">
      <s:element name="StartProvisioning">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="Parameters" type="tns:ArrayOfParameter" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:complexType name="ArrayOfParameter">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="Parameter" nillable="true" type="tns:Parameter" />
        </s:sequence>
      </s:complexType>
      <s:complexType name="Parameter">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="1" name="Name" type="s:string" />
          <s:element minOccurs="0" maxOccurs="1" name="Value" type="s:string" />
        </s:sequence>
      </s:complexType>
      <s:element name="StartProvisioningResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="StartProvisioningResult" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>

Open in new window

0
 
LVL 17

Expert Comment

by:krakatoa
ID: 20757403
:)
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question