Click here to Skip to main content
15,881,380 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: php Pin
cjoki20-Dec-10 4:37
cjoki20-Dec-10 4:37 
AnswerRe: php Pin
Luc Pattyn20-Dec-10 6:23
sitebuilderLuc Pattyn20-Dec-10 6:23 
AnswerRe: Manually redirect to error.php & send 404 in HTTP header? Pin
Luc Pattyn16-Dec-10 10:55
sitebuilderLuc Pattyn16-Dec-10 10:55 
GeneralRe: Manually redirect to error.php & send 404 in HTTP header? Pin
User 741604616-Dec-10 11:06
User 741604616-Dec-10 11:06 
AnswerRe: Manually redirect to error.php & send 404 in HTTP header? Pin
Luc Pattyn16-Dec-10 11:11
sitebuilderLuc Pattyn16-Dec-10 11:11 
GeneralRe: Manually redirect to error.php & send 404 in HTTP header? Pin
User 741604616-Dec-10 11:15
User 741604616-Dec-10 11:15 
GeneralRe: Manually redirect to error.php & send 404 in HTTP header? Pin
User 741604616-Dec-10 12:15
User 741604616-Dec-10 12:15 
QuestionWeb Services, WSDL and SOAP Pin
Dills100215-Dec-10 1:23
Dills100215-Dec-10 1:23 
Hi all,

This is my first post so go easy with me.

I doubt anyone's familiar with RightNow CRM, but it's this application's database I'm manipulating with the use of SOAP. RightNow is a Customer Relationship Management application and is basically a large database which allows people to store information of any kind relating to pretty much anything they want.

This application provides functionality called Custom Objects. Custom Objects allow people to build specific functionality within RightNow and make it available to users. For example, a custom object 'Computer' might be created and information such as its manufacturer, specification and price may be stored. Think of them much as objects in OOP.

I am currently trying to create (or instantiate) an Accreditation object that I have built in RightNow using WSDL. I'm using a tool called
WSDL2PHP which has generated a set of classes and functions from the WSDL file, which I've been using to perform operations progammatically in RightNow.

My problem lies with the SOAP that is being generated. Specifically, an element 'DataValue', which is supposed to contain a child element 'StringValue', is continually being output as '<ns1:datavalue>' with no child. The WSDL file describes DataValue thus:

<xs:element name="DataValue" type="DataValue"/>
<xs:complexType name="DataValue">
<xs:choice minOccurs="1" maxOccurs="1">
<xs:element name="Base64BinaryValue" type="xs:base64Binary" minOccurs="1" maxOccurs="1"/>
<xs:element name="BooleanValue" type="xs:boolean" minOccurs="1" maxOccurs="1"/>
<xs:element name="BooleanValueList" type="xs:boolean" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="DateTimeValue" type="xs:dateTime" minOccurs="1" maxOccurs="1"/>
<xs:element name="DateTimeValueList" type="xs:dateTime" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="DateValue" type="xs:date" minOccurs="1" maxOccurs="1"/>
<xs:element name="DateValueList" type="xs:date" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="DecimalValue" type="xs:double" minOccurs="1" maxOccurs="1"/>
<xs:element name="DecimalValueList" type="xs:double" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="IDValue" type="rnb_v1:ID" minOccurs="1" maxOccurs="1"/>
<xs:element name="IDValueList" type="rnb_v1:ID" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="IntegerValue" type="xs:int" minOccurs="1" maxOccurs="1"/>
<xs:element name="IntegerValueList" type="xs:int" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="LongValue" type="xs:long" minOccurs="1" maxOccurs="1"/>
<xs:element name="LongValueList" type="xs:long" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="NamedIDDeltaValueList" type="rnb_v1:NamedIDDelta" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="NamedIDHierarchyValue" type="rnb_v1:NamedIDHierarchy" minOccurs="1" maxOccurs="1"/>
<xs:element name="NamedIDHierarchyValueList" type="rnb_v1:NamedIDHierarchy" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="NamedIDValue" type="rnb_v1:NamedID" minOccurs="1" maxOccurs="1"/>
<xs:element name="NamedIDValueList" type="rnb_v1:NamedID" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="ObjectValue" type="GenericObject" minOccurs="1" maxOccurs="1"/>
<xs:element name="ObjectValueList" type="GenericObject" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="StringValue" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="StringValueList" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
</xs:choice>
</xs:complexType>

The code that WSDL2PHP has generated for DataValue is thus:

class DataValue {
public $Base64BinaryValue; // base64Binary
public $BooleanValue; // boolean
public $BooleanValueList; // boolean
public $DateTimeValue; // dateTime
public $DateTimeValueList; // dateTime
public $DateValue; // date
public $DateValueList; // date
public $DecimalValue; // double
public $DecimalValueList; // double
public $IDValue; // ID
public $IDValueList; // ID
public $IntegerValue; // int
public $IntegerValueList; // int
public $LongValue; // long
public $LongValueList; // long
public $NamedIDDeltaValueList; // NamedIDDelta
public $NamedIDHierarchyValue; // NamedIDHierarchy
public $NamedIDHierarchyValueList; // NamedIDHierarchy
public $NamedIDValue; // NamedID
public $NamedIDValueList; // NamedID
public $ObjectValue; // GenericObject
public $ObjectValueList; // GenericObject
public $StringValue; // string
public $StringValueList; // string
}

The code that I have used to set a StringValue for DataValue is thus:

$dataValue = new DataValue();
$dataValue->StringValue = 'TEST';

However, the DataValue element is always being output, as previously mentioned, like this in the SOAP: <ns1:datavalue>. Would anyone be able to put forward a reason as to why this is happening? As far as I can see the classes that WSDL2PHP has generated are correct and I have not had the same trouble when using other complexTypes.

Many thanks,

Chris.
QuestionLive update of data? Pin
MacRaider413-Dec-10 6:37
MacRaider413-Dec-10 6:37 
AnswerRe: Live update of data? Pin
cjoki13-Dec-10 11:39
cjoki13-Dec-10 11:39 
Questionmultiple tables Pin
MacRaider48-Dec-10 2:18
MacRaider48-Dec-10 2:18 
AnswerRe: multiple tables [modified] Pin
cjoki8-Dec-10 9:59
cjoki8-Dec-10 9:59 
GeneralRe: multiple tables Pin
MacRaider48-Dec-10 12:53
MacRaider48-Dec-10 12:53 
GeneralRe: multiple tables Pin
cjoki9-Dec-10 4:57
cjoki9-Dec-10 4:57 
GeneralRe: multiple tables Pin
MacRaider49-Dec-10 5:18
MacRaider49-Dec-10 5:18 
QuestionChanging the content of a div tag help required Pin
djhankypark6-Dec-10 2:25
djhankypark6-Dec-10 2:25 
AnswerRe: Changing the content of a div tag help required Pin
cjoki6-Dec-10 4:25
cjoki6-Dec-10 4:25 
AnswerRe: Changing the content of a div tag help required Pin
Yvan Rodrigues12-Dec-10 13:45
professionalYvan Rodrigues12-Dec-10 13:45 
QuestionHow to make a binary tree structure in php Pin
amanarora3-Dec-10 18:43
amanarora3-Dec-10 18:43 
AnswerRe: How to make a binary tree structure in php Pin
Dr.Walt Fair, PE12-Dec-10 12:31
professionalDr.Walt Fair, PE12-Dec-10 12:31 
GeneralRe: How to make a binary tree structure in php Pin
amanarora12-Dec-10 20:28
amanarora12-Dec-10 20:28 
QuestionNot able to debug my application Pin
PeriyasamyRamachandran3-Dec-10 3:37
PeriyasamyRamachandran3-Dec-10 3:37 
QuestionNot able to log in - Fatal error [modified] Pin
PeriyasamyRamachandran2-Dec-10 22:25
PeriyasamyRamachandran2-Dec-10 22:25 
QuestionUsing Perl to automate the software installation build process Pin
Blair Symes2-Dec-10 6:34
Blair Symes2-Dec-10 6:34 
Questionbreadcrumbs Pin
AndyInUK29-Nov-10 23:21
AndyInUK29-Nov-10 23:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.