• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Problems publishing a Web Service with a int[] parameter
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Problems publishing a Web Service with a int[] parameter


  • Subject: Problems publishing a Web Service with a int[] parameter
  • From: Serge Froment <email@hidden>
  • Date: Mon, 22 Mar 2004 09:44:45 -0500

Hi,

Using WebObjects 5.2.3, I publish the following class using
WOWebServiceRegistrar.registerWebService:

public class AccountProvisioning_v4_7
{
	public static ZKSResult SubscribeUser(int transaction_id, String
account_id, int[] product_id, String auth, String cred, String email,
String email_pref, String language)
	{
		...
	}
}

When I try to call this Web Service using either WebObjects, Pearl or
PHP, I get an error related to the int[] parameter. Here is the error I
get when I use WebObjects:

  java.lang.IllegalStateException: Cannot find type for QName:
{http://host1-89.dyn.dev.zks.net/cgi-bin/WebObjects/
PartnerSynchro.woa/-3100/ws/AccountProvisioning_v4_7}ArrayOf_xsd_int

Errors I get from Pearl and PHP also relate to the int array parameter.

ZKSResult is a result class that works OK in a previous version of my
application that have a int parameter instead of a int array parameter.
So the problem is really with the int array parameter. I tried changing
the parameter type from int[] to java.lang.Integer[] to no avail.

The part of the generated WSDL related to this parameter looks like
this:

<s:schema xmlns="http://www.w3.org/2001/XMLSchema";
targetNamespace="https://webservices-v1.zeroknowledge.com/cgi-bin/
WebObjects/PartnerSynchro.woa/ws/AccountProvisioning_v4_7">
	<s:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
	<s:complexType name="ArrayOf_xsd_int">
		<s:complexContent>
			<s:restriction base="soapenc:Array">
				<s:attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:int[]"/>
			</s:restriction>
		</s:complexContent>
	</s:complexType>
	<s:element name="ArrayOf_xsd_int" nillable="true"
type="s0:ArrayOf_xsd_int"/>
</s:schema>

Please help as our business partner should start testing our web
service tomorrow.

Serge Froment
http://www.serge-froment.com
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


  • Prev by Date: RE: Too many open files error during file upload.
  • Next by Date: RE: Urgent: Displaying image from NSData
  • Previous by thread: RE: Too many open files error during file upload.
  • Next by thread: App hangs on 1st access to DB
  • Index(es):
    • Date
    • Thread