arrayMapping usage

2007-03-01 Thread cudatha
Hi ,
 
i have defined a bean using beanMapping in Wsdd file.
do i need to use arrayMapping if i am using the array of beans in method
signatures?
 
what difference it makes by using arrayMapping tag?
 
-chandra


How to avoid item tag for an array

2007-02-28 Thread cudatha
Hi,

I am relatively new to web services. I am using Axis 1.2.
I am implementing a web service for which the consumer is InfoPath 2003
(part of Office 2003 professional pack) which should be a .Net client.

The requirement for web service is:
the web service should return 'n' number of part beans. And each
part bean will have its own list of attributes names and values.

The return type for the web service is
PartBean[]
Part Bean has attributes
partType :String
partNumber: String
attributes: AttributeBean[]
AttributeBean has attributes all strings
  attributeName: 
absoluteName: 
dataType: 
  attributeValue: 
availableValue: 
readOnly: 
  name: 

Below is the response structure I am receiving when this service is
invoked.


Envelope: 
  Body: 
executePartsSearchResponse: 
  executePartsSearchReturn: 
attributes: 
  item: 
attributeName: 
absoluteName: 
dataType: 
attributeValue: Attr Value 1
availableValue: 
readOnly: false
name: Attr 1
partType: MPG Parent Part
partNumber: MPG1
  executePartsSearchReturn: 
attributes: 
  item: 
attributeName: 
absoluteName: 
dataType: 
attributeValue: Attr Value 1
availableValue: 
readOnly: false
name: Attr 1
partType: MPG Parent Part
partNumber: MPG2



--
Problem here is .Net client (InfoPath) is not able to recognize element
'item'. It is giving below error while parsing the xml response.
"Element 'item' is unexpected according to content model of parent
element '{urn:com.micron.plm.wsx.ui.PartsObjectService}attributes'.
Expecting: {urn:com.micron.plm.wsx.ui.PartsObjectService}item."

Is there any easy way to remove 'item' from the xml response. I tried
modifying wsdl file but no success.


I am using wsdd to define the 'beanMapping' for the PartBean,
AttributeBean which looks like as below.
I am using wrapped style for .Net interoperability:

--
http://xml.apache.org/axis/wsdd/";
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";
xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance";>



urn:com.micron.plm.wsx.ui.PartsObjectService












The wsdl generated by axis is as below:
---

http://xml.apache.org/xml-soap";
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:tns1="http://www.w3.org/1999/XMLSchema";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns="http://schemas.xmlsoap.org/wsdl/";>

 
  http://www.w3.org/2001/XMLSchema";
targetNamespace="urn:com.micron.plm.wsx.ui.PartsObjectService"
elementFormDefault="qualified">
   

 
 
 
 
 
 
 

   
   

 

   
   

 
 
 

   
   

 
  
 

   
   

 
  
 

   
  
 

   

  

   

   

  

   

   

  

 

 

  

   

   

  http://schemas.xmlsoap.org/soap/http"/>

  

 

 



 

 



 

  

   

   

  

 http://ntplmdev01.micron.com/Agile/integration/services/PartsO
bjectService"/>

  

   



Please let me know any work arounds to get rid of the item tag fromt the
response.

Thanks in advance.

Waiting eagerly for your response.

-Chandra

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]