complextype

Include Elements in XSD Complex Type Without New Element

Hi I have this complex type: <xsd:complexType name="Identifier"> <xsd:sequence> <xsd:element name="Id" type="xsd:string"/> <xsd:element name="Version" type="xsd:string"/> </xsd:sequence> </xsd:complexType> Now I want to include this in another complex type and I've been doing that like this: <xsd:complexType> <...

How do I consume a webservice returning complexTypes in PHP?

I am using PHP 5.2.10 and I am trying to consume a webservice which returns complex data types using the standard SOAP extension. The problem is that SoapClient does not populate objects which are nested into other objects / array of objects. A simplified example of what I get when I call the getUtente method, specifying "my_unique_id" ...

Can one mix "referecened" and "inline" complex types in XSD?

I was wondering if mixing "referecened" and "inline" types is allowed in XSD, e.g.: <schema> <element name="library" type="departments"> <complexType> <sequence> <element name="department_name" type="string"/> </sequence> </complexType> </element> <complexType name="departements"> <sequence> <...

XML/SOAP attributes for a complextype in kSOAP

Hi, I'm trying to parse a SOAP response that contains nested ComplexTypes using the kSOAP library on Android 2.1. <event att1="value1" att2="value2" att3="value3"> <tag2> ... </tag2> <tag3> ... </tag3> </event> I've implemented my own class Event that implements org.ksoap2.serialization.KvmSerializable to parse this response...

Some questions about the .NET Entity Framework and Stored Procedures

Hey everyone, I had a couple of questions relating to the .NET Entity Framework and using stored procedures. Here goes: I know that we can right click a stored procedure and choose Function Import to be able to use with code. Is there a way to do this for many stored procedures at once? When doing a Function Import, I can create a ne...

Problem with Entity Framework 4, Complex Types, StoredProcs, and temp tables

Hello, I am skinning my knees on Entity Framework 4 and running into a slight problem. I have some stored procedures that I am pulling into my EDMX. When I create complex types from these procs, EF has no problem getting the column information. Except in one place. After being puzzled for a while, I figure out it was my temporary ...

Entity Framework 4.0 - Can I send a complex type to the client over WCF ?

Hey, can anybody confirm the following scenario will work: I am developing a 3-tier application in .NET 4.0: Winforms Client, aspx server and SQL 2008 database. The server communicates with the SQL 2008 database by means of Entity Framework 4.0, and returns the entities in forms of STE's (in a separate assembly) to the client applicati...

How can I create a general XSD complex type?

I just started using XSD today to bear with me if this a kind of a dumb question. I have an XML schema where three root elements, A, B, and C, are defined. Each of these elements may have a child of type 'example'. The 'example' type has three different attributes. While A, B, and C may only have a child of type 'example', the requirem...

XML Schema with complext type containing <xs:all> and <xs:any> ?

I want to define a complex type that contains elements that may or may not exist, and also allows for additional undefined elements so I've got something like this: <xs:complexType name="MyType"> <xs:sequence> <xs:element name="A" type="xs:float" minOccurs="0" maxOccurs="1" /> <xs:element name="B" type="xs:float" minOccurs="0" maxO...

How to get complex types from WSDL file?

I have the following wsdl file: <wsdl:types> <schema elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema"&gt; <import namespace="http:..."/> <complexType name="BaseBean"> <sequence/> </complexType> <complexType name="DateBean"> <complexContent> <extension base="impl:BaseBean"> <sequen...

Consuming object of ComplexType through PHP SoapClient

I'm trying to consume a soap feed using the PHP SoapClient and convert it to an array. It works great until I run into an object that is a complexType. Then it returns... [0] => stdClass Object ...instead of showing the multiple elements that are displayed when I access the SOAP feed otherwise. I'm very new to SOAP, so any help is ap...

WebService: How to return an array of a complex type?

2 Questions really, and I'm not sure if I'm doing this right or not... I want to send back an array of some sort for an Entity object I created. I'm not really sure how to mark it for sending (what attributes are needed or whatever), and I'm not really sure how to send it back (IList, List, Collection, ICollection). Ideally I'd love to...

Posting Complex types/HttpContent in WCF REST 4.0?

Hello All, I have a concern in passing complex objects/any other types: because I always get a bad request...Code snippet below: Service: [OperationContract] [WebInvoke(UriTemplate = "saveXML/", Method="POST", BodyStyle= WebMessageBodyStyle.Bare)] bool saveXML(XElement xmlString) { return true; } ========= Client: private H...

Entity Framework - Using stored procedure which return same column names from different entities

I have tables named Contact and Address and both of them have "ModifiedDate" column. I have written the CUD operations using Stored procedures. However, when It came to SELECT stored procedure in which I needed to return all the contacts with their addresses, I got an error. System.Data.EntityCommandExecutionException: The data rea...

Accessing a SOAP Webservice using PHP containing a complexType in the WSDL

I want to make a call to a webservice of which I only have the WSDL file. I'll list the important bits from the WSDL file with context sensitive names replaced by general ones: The function I want to call: <wsdl:operation name="myFunction"> <wsdl:input message="ns:myFunctionRequest" wsaw:Action="urn:myFunction"/> <wsdl:output mes...

cxf / jaxb complex types

Hello, I use CXF to generate the classes from WSDL but I don't know how to access the following field : <s:complexType name="text-with-layout-type" mixed="true"> <s:sequence> <s:any minOccurs="0" maxOccurs="unbounded"/> </s:sequence> <s:attribute name="L" type="s:string"/> </s:complexType> The resulting class is : @XmlAccessorType(X...