Jump to content

mrosenello

Members
  • Posts

    5
  • Joined

  • Last visited

Everything posted by mrosenello

  1. Any ideas on some other things I could try in order to have the soap envelope produce the desired request (ie <option.list><option.list><SubItemId>0</SubItemId><SubOptions>some text</SubOptions><SubItemName></option.list></option.list> ). With repeating inside option.list elements?
  2. I did some searching on this issue and all the solutions that seemed to be similar did not work for my problem. Anyways, I need to make a SOAP call with a sequence in it, yet soapClient doesn't seem to be converting my object into the correct soap call (it is leaving out the sequence). Below is the part of the wsdl that I cant seem to get, along with the object that I am sending, and lastly the request that soapClient is translating my object into. Any help would be much appreciated. wsdl: <xs:element minOccurs="0" name="option.list"> <xs:complexType> <xs:complexContent> <xs:extension base="cmn:ArrayType"> <xs:sequence> <xs:element maxOccurs="unbounded" minOccurs="0" name="option.list"> <xs:complexType> <xs:complexContent> <xs:extension base="cmn:StructureType"> <xs:sequence> <xs:element minOccurs="0" name="SubItemId" nillable="true" type="cmn:DecimalType"/> <xs:element minOccurs="0" name="SubOptions" nillable="true" type="cmn:StringType"/> <xs:element minOccurs="0" name="SubItemName" nillable="true" type="cmn:StringType"/> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> </xs:sequence> </xs:extension> </xs:complexContent> </xs:complexType> </xs:element> my object: [option.list] => Array ( [0] => Array ( [option.list] => Array ( [SubItemId] => 0 [SubOptions] => <?xml version="1.0" encoding="UTF-8" standalone="yes"?><form><select id="DBMS" label="DBMS type:" style="combo">MS SQL<option label="" /><option id="0" label="DB2">DB2</option><option id="1" label="IMS">IMS</option><option id="2" label="MS SQL">MS SQL</option><option id="3" label="Oracle">Oracle</option><option id="4" label="UDB">UDB</option></select><select id="Type" label="lation Type:" style="combo">Add New Instance<option label="" /><option id="0" label="Add New Environment">Add New Environment</option><option id="1" label="Add New Instance">Add New Instance</option><option id="2" label="Add New Database">Add New Database</option><option id="3" label="Modify Environment">Modify Environment</option><option id="4" label="Modify Instance">Modify Instance</option><option id="5" label="Modify Database">Modify Database</option><option id="6" label="Retire Environment">Retire Environment</option><option id="7" label="Retire Instance">Retire Instance</option><option id="8" label="Retire Database">Retire Database</option></select><select id="Complexity" label="xity:" style="combo">Complex [+$2500.00]<option label="" /><option id="0" label="Simple [+$500.00]">Simple [+$500.00]</option><option id="1" label="Medium [+$1000.00]">Medium [+$1000.00]</option><option id="2" label="Complex [+$2500.00]">Complex [+$2500.00]</option></select><select id="RecoveryTier" label="rability Tier:" style="combo">Tier 2<option label="" /><option id="0" label="Tier 1">Tier 1</option><option id="1" label="Tier 2">Tier 2</option><option id="2" label="Tier 3">Tier 3</option></select><select id="Backup" label=" Backup Required?" style="combo">Yes<option label="" /><option id="0" label="Yes">Yes</option><option id="1" label="No">No</option></select><select id="Replication" label=" tables require replication?" style="combo">UDB Dprop<option label="" /><option id="0" label="UDB Dprop">UDB Dprop</option><option id="1" label="Goldengate">Goldengate</option><option id="2" label="ASM">ASM</option><option id="3" label="No">No</option></select></form> [SubItemName] => DB Modification ) ) ) generated request: <ns1:option.list><ns1:option.list/></ns1:option.list>
  3. Thanks for the response. Im going to give this a shot. What I meant by creating multiple classes with the same name is this: class option.list { public $option.list; // option.list } class option.list { public $SubItemId; // DecimalType public $SubOptions; // StringType public $SubItemName; // StringType }
  4. I am new here, and not sure if this is the right place to put this, anyways I had a question about wsdl2php and php Soap Client. I need to send SOAP requests from a PHP applications and I am trying to use wsdl2php to generate the needed classes. (Did this a few times in the past with no issues.) Anyways, this time I am running into an issue where the WSDL has '.' in the element names and there are also nested element names. below is a section of the wsdl that shows this. -<xs:element name="option.list" minOccurs="0">-<xs:complexType>-<xs:complexContent>-<xs:extension base="cmn:ArrayType">-<xs:sequence>-<xs:element name="option.list" minOccurs="0" maxOccurs="unbounded">-<xs:complexType>-<xs:complexContent>-<xs:extension base="cmn:StructureType">-<xs:sequence><xs:element name="FromBundle" type="cmn:DecimalType" nillable="true" minOccurs="0"/><xs:element name="SubItemId" type="cmn:DecimalType" nillable="true" minOccurs="0"/><xs:element name="SubItemName" type="cmn:StringType" nillable="true" minOccurs="0"/><xs:element name="SubItemType" type="cmn:StringType" nillable="true" minOccurs="0"/><xs:element name="SubOptions" type="cmn:StringType" nillable="true" minOccurs="0"/><xs:element name="SubOptionValidations" type="cmn:StringType" nillable="true" minOccurs="0"/><xs:element name="SubOptionCosts" type="cmn:StringType" nillable="true" minOccurs="0"/><xs:element name="SubItemOptionInBundle" type="cmn:StringType" nillable="true" minOccurs="0"/><xs:element name="SubItemQuantityInBundle" type="cmn:DecimalType" nillable="true" minOccurs="0"/><xs:element name="SubItemOptionIdInBundle" type="cmn:StringType" nillable="true" minOccurs="0"/></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element></xs:sequence></xs:extension></xs:complexContent></xs:complexType></xs:element> So, wsdl2php is creating classes with a '.' in them and also declaring classes twice because of the nested element names. If anyone has any ideas on how I can get these soap requests working, or have seen this before, I would be very apprciative. Thanks, Mike
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.