Showing posts with label xml schema. Show all posts
Showing posts with label xml schema. Show all posts
XML Schema Simple Types & How WSDL2PHP Convert Them To PHP
Thursday, November 13, 2008
There are many categorizations of simple types in xml schema. The applications of each of these categories are different from one to other. And the representation of them in PHP are too different. This blog title "XML Schema Simple Types & How WSDL2PHP Convert Them To PHP" explains all about these details.
Labels:
facets,
list,
simple types,
union,
xml schema
WSF/PHP WSDL Mode - Handling XML Schema Arrays
Saturday, October 25, 2008
This post "WSF/PHP WSDL Mode - Handling XML Schema Arrays" talks about how you deal with XML Schema arrays when you write web services in WSDL mode with WSF/PHP.
Labels:
Array,
WSDL mode,
xml schema
XML Schema Parsing in WSF/PHP
Sunday, March 9, 2008
WSF/PHP is currently famous for wide range of WS-* implementations like WS-Security, WS-Reliable Messaging. Plus it is the only choice that PHP programmers have when they have to work with optimized binary attachments, secured and reliable messaging.
Anyway when it comes to WSDL-mode, for the time being it supports only very common types of XML schema constructs. Anyway currently we are on the process of improving this, and surely WSF/PHP will be able to handle most of your WSDLs by the next major release.
Anyway when it comes to WSDL-mode, for the time being it supports only very common types of XML schema constructs. Anyway currently we are on the process of improving this, and surely WSF/PHP will be able to handle most of your WSDLs by the next major release.
Labels:
WSDL mode,
xml schema
Schema "anyType" in WSF/PHP
Tuesday, February 26, 2008
Have you seen any schema that contain elements in 'anyType' like this,
This type of schemas allow users to set any types at run-time. Now WSF/PHP allows users to use this facility in PHP. For an example,
So if any one want to build the following payload,
or using the classmap,
<xsd:schema elementFormDefault="qualified" targetNamespace="http://www.wso2.org/php">
<xsd:element name="echoString">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="inMessage" type="xsd:anyType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="echoStringResponse">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="returnVal" type="xsd:anyType"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
This type of schemas allow users to set any types at run-time. Now WSF/PHP allows users to use this facility in PHP. For an example,
So if any one want to build the following payload,
<echostring xmlns="http://www.wso2.org/php">You can just use following array to generate this,
<inmessage>
code and string
</inmessage>
</echostring>
$res = $proxy->echoString(array("inMessage" => "code and string"));
or using the classmap,
class echoStringSimilarly you will be able handle the response..
{
public $inMessage;
}
$echostr = new echoString();
$echostr->inMessage = "test1";
$proxy->echoString($echostr);
Labels:
anyType,
WSF/PHP,
xml schema
Subscribe to:
Posts (Atom)