RE: AXIS Fault Required Attribute localType is null
Raghu, I do not see the type variable in the WSDL. I have attached the WSDL file. Thanks for the help ! regards -Saket Raizada 309-763-5492 Automation (Maintenance) From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 7:16 PM To: axis-user@ws.apache.org Subject: RE: AXIS Fault Required Attribute localType is null Hi Saket, Can you post your WSDL? From the Axis Fault it looks like you have a variable named type in the Incident object which is defined as not nullable in WSDL and you are not setting that in your request. Thanks Raghu From: Saket Raizada [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 3:48 PM To: axis-user@ws.apache.org Subject: AXIS Fault Required Attribute localType is null Hi Folks, I am using AXIS 2, 1.3 and created a client for an existing WebService I am trying to use the WebService to create an incident using the example code below StringType contact = new StringType(); contact.setString(user1); incident.setContact(contact); stub.createIncident(incident) I get an AXIS Fault Required Attribute localType is null , there is no SOAP body message generated..., however if i comment out the line //incident.setContact(contact) , the incident gets generated and i can see the SOAP messages etc. I am using ADB binding and am out of ideas what localType is (it's not part of incident or web service that i am trying to access) also no SOAP BODY XML is generated. Any pointers will be very helpful -machoq ?xml version=1.0 encoding=UTF-8 standalone=yes ?definitions targetNamespace=http://openview.hp.com/xmlns/SM/1; xmlns=http://schemas.xmlsoap.org/wsdl/; xmlns:cmn=http://openview.hp.com/xmlns/SM/1/Common; xmlns:http=http://schemas.xmlsoap.org/wsdl/http/; xmlns:mime=http://schemas.xmlsoap.org/wsdl/mime/; xmlns:ns=http://openview.hp.com/xmlns/SM/1; xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/; xmlns:xsd=http://www.w3.org/2001/XMLSchema; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://schemas.xmlsoap.org/wsdl/ http://schemas.xmlsoap.org/wsdl/;typesxs:schema xmlns:xs=http://www.w3.org/2001/XMLSchema; attributeFormDefault=unqualified elementFormDefault=qualified targetNamespace=http://openview.hp.com/xmlns/SM/1; version=2007-04-14 Rev 1 xmlns=http://openview.hp.com/xmlns/SM/1; xmlns:cmn=http://openview.hp.com/xmlns/SM/1/Common; xmlns:xmime=http://www.w3.org/2005/05/xmlmime;xs:import namespace=http://www.w3.org/2005/05/xmlmime; schemaLocation=http://www.w3.org/2005/05/xmlmime/xs:import namespace=http://openview.hp.com/xmlns/SM/1/Common; schemaLocation=http://xyz.com:111/SM/1/Common.xsd/xs:complexType name=Incidentxs:sequencexs:element minOccurs=0 name=IncidentID nillable=true type=cmn:StringType/xs:element minOccurs=0 name=Category nillable=true type=cmn:StringType/xs:element minOccurs=0 name=OpenTime nillable=true type=cmn:DateTimeType/xs:element minOccurs=0 name=OpenedBy nillable=true type=cmn:StringType/xs:element minOccurs=0 name=severity nillable=true type=cmn:StringType/xs:element minOccurs=0 name=UpdatedTime nillable=true type=cmn:DateTimeType/xs:element minOccurs=0 name=PrimaryAssignmentGroup nillable=true type=cmn:StringType/xs:element minOccurs=0 name=ClosedTime nillable=true type=cmn:DateTimeType/xs:element minOccurs=0 name=ClosedBy nillable=true type=cmn:StringType/xs:element minOccurs=0 name=ClosureCode nillable=true type=cmn:StringType/xs:element minOccurs=0 name=ConfigurationItem nillable=true type=cmn:StringType/xs:element minOccurs=0 name=Location nillable=true type=cmn:StringType/xs:element minOccurs=0 name=IncidentDescriptionxs:complexTypexs:complexContentxs:extension base=cmn:ArrayTypexs:sequencexs:element maxOccurs=unbounded minOccurs=0 name=IncidentDescription type=cmn:StringType//xs:sequence/xs:extension/xs:complexContent/xs:complexType/xs:elementxs:element minOccurs=0 name=Resolutionxs:complexTypexs:complexContentxs:extension base=cmn:ArrayTypexs:sequencexs:element maxOccurs=unbounded minOccurs=0 name=Resolution type=cmn:StringType//xs:sequence/xs:extension/xs:complexContent/xs:complexType/xs:elementxs:element minOccurs=0 name=AssigneeName nillable=true type=cmn:StringType/xs:element minOccurs=0 name=Contact nillable=true type=cmn:StringType/xs:element minOccurs=0 name=JournalUpdatesxs:complexTypexs:complexContentxs:extension base=cmn:ArrayTypexs:sequencexs:element maxOccurs=unbounded minOccurs=0 name=JournalUpdates type=cmn:StringType//xs:sequence/xs:extension/xs:complexContent/xs:complexType/xs:elementxs:element minOccurs=0 name=AlertStatus nillable=true type=cmn:StringType/xs:element minOccurs=0 name=ContactLastName nillable=true type=cmn:StringType/xs:element minOccurs=0 name=ContactFirstName nillable=true type=cmn:StringType/xs:element minOccurs=0 name=Company nillable=true type=cmn:StringType/xs:element minOccurs=0 name=BriefDescription nillable=true type=cmn:StringType
RE: AXIS Fault Required Attribute localType is null
Hi Saket, Can you also post your Common.xsd file which has the definition of all the Types. Thanks Raghu From: Saket Raizada [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 23, 2007 6:38 AM To: axis-user@ws.apache.org Subject: RE: AXIS Fault Required Attribute localType is null Raghu, I do not see the type variable in the WSDL. I have attached the WSDL file. Thanks for the help ! regards -Saket Raizada 309-763-5492 Automation (Maintenance) From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 7:16 PM To: axis-user@ws.apache.org Subject: RE: AXIS Fault Required Attribute localType is null Hi Saket, Can you post your WSDL? From the Axis Fault it looks like you have a variable named type in the Incident object which is defined as not nullable in WSDL and you are not setting that in your request. Thanks Raghu From: Saket Raizada [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 3:48 PM To: axis-user@ws.apache.org Subject: AXIS Fault Required Attribute localType is null Hi Folks, I am using AXIS 2, 1.3 and created a client for an existing WebService I am trying to use the WebService to create an incident using the example code below StringType contact = new StringType(); contact.setString(user1); incident.setContact(contact); stub.createIncident(incident) I get an AXIS Fault Required Attribute localType is null , there is no SOAP body message generated..., however if i comment out the line //incident.setContact(contact) , the incident gets generated and i can see the SOAP messages etc. I am using ADB binding and am out of ideas what localType is (it's not part of incident or web service that i am trying to access) also no SOAP BODY XML is generated. Any pointers will be very helpful -machoq
RE: AXIS Fault Required Attribute localType is null
Hi Raghu, The common.xsd contained this information for the value i was setting and i see that the type value must be set. In the generated StringType.java i see a function to set the type and i also see that it sends an error Required Attribute localType is null if the type is not set. Thanks a lot for your help ! Below is the snippet from the Commons.xsd - http://ov95dev2.opr.test.statefarm.org:13080/SM/1/Common.xsd# xs:complexType name=StringType - http://ov95dev2.opr.test.statefarm.org:13080/SM/1/Common.xsd# xs:simpleContent - http://ov95dev2.opr.test.statefarm.org:13080/SM/1/Common.xsd# xs:extension base=xs:string xs:attribute fixed=String name=type type=xs:string use=required / xs:attribute name=mandatory type=xs:boolean use=optional / xs:attribute name=readonly type=xs:boolean use=optional / /xs:extension /xs:simpleContent /xs:complexType regards -Saket Raizada From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 23, 2007 1:08 PM To: axis-user@ws.apache.org Subject: RE: AXIS Fault Required Attribute localType is null Hi Saket, Can you also post your Common.xsd file which has the definition of all the Types. Thanks Raghu From: Saket Raizada [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 23, 2007 6:38 AM To: axis-user@ws.apache.org Subject: RE: AXIS Fault Required Attribute localType is null Raghu, I do not see the type variable in the WSDL. I have attached the WSDL file. Thanks for the help ! regards -Saket Raizada 309-763-5492 Automation (Maintenance) From: Raghu Upadhyayula [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 7:16 PM To: axis-user@ws.apache.org Subject: RE: AXIS Fault Required Attribute localType is null Hi Saket, Can you post your WSDL? From the Axis Fault it looks like you have a variable named type in the Incident object which is defined as not nullable in WSDL and you are not setting that in your request. Thanks Raghu From: Saket Raizada [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 3:48 PM To: axis-user@ws.apache.org Subject: AXIS Fault Required Attribute localType is null Hi Folks, I am using AXIS 2, 1.3 and created a client for an existing WebService I am trying to use the WebService to create an incident using the example code below StringType contact = new StringType(); contact.setString(user1); incident.setContact(contact); stub.createIncident(incident) I get an AXIS Fault Required Attribute localType is null , there is no SOAP body message generated..., however if i comment out the line //incident.setContact(contact) , the incident gets generated and i can see the SOAP messages etc. I am using ADB binding and am out of ideas what localType is (it's not part of incident or web service that i am trying to access) also no SOAP BODY XML is generated. Any pointers will be very helpful -machoq
Re: AXIS Fault Required Attribute localType is null
AXIS Fault Required Attribute localType is nullThe name of the operation parameter needs to be a QName (Qualified Name) following the provided example private void populateAxisService() throws org.apache.axis2.AxisFault { //creating the Service with a unique name _service = new org.apache.axis2.description.AxisService(MTOMSample + this.hashCode()); //creating the operation org.apache.axis2.description.AxisOperation __operation; //create the Operations _operations = new org.apache.axis2.description.AxisOperation[1]; //coordinate this with supplied parameter in services.xml __operation = new org.apache.axis2.description.OutInAxisOperation(); // set the name of the Operation as a QName __operation.setName(new javax.xml.namespace.QName(http://ws.apache.org/axis2/mtomsample/;, attachment)); //Add the operation to the service _service.addOperation(__operation); _operations[0]=__operation; } Martin - Original Message - From: Saket Raizada To: axis-user@ws.apache.org Sent: Monday, October 22, 2007 6:48 PM Subject: AXIS Fault Required Attribute localType is null Hi Folks, I am using AXIS 2, 1.3 and created a client for an existing WebService I am trying to use the WebService to create an incident using the example code below StringType contact = new StringType(); contact.setString(user1); incident.setContact(contact); stub.createIncident(incident) I get an AXIS Fault Required Attribute localType is null , there is no SOAP body message generated..., however if i comment out the line //incident.setContact(contact) , the incident gets generated and i can see the SOAP messages etc. I am using ADB binding and am out of ideas what localType is (it's not part of incident or web service that i am trying to access) also no SOAP BODY XML is generated. Any pointers will be very helpful -machoq
RE: AXIS Fault Required Attribute localType is null
Hi Saket, Can you post your WSDL? From the Axis Fault it looks like you have a variable named type in the Incident object which is defined as not nullable in WSDL and you are not setting that in your request. Thanks Raghu From: Saket Raizada [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 3:48 PM To: axis-user@ws.apache.org Subject: AXIS Fault Required Attribute localType is null Hi Folks, I am using AXIS 2, 1.3 and created a client for an existing WebService I am trying to use the WebService to create an incident using the example code below StringType contact = new StringType(); contact.setString(user1); incident.setContact(contact); stub.createIncident(incident) I get an AXIS Fault Required Attribute localType is null , there is no SOAP body message generated..., however if i comment out the line //incident.setContact(contact) , the incident gets generated and i can see the SOAP messages etc. I am using ADB binding and am out of ideas what localType is (it's not part of incident or web service that i am trying to access) also no SOAP BODY XML is generated. Any pointers will be very helpful -machoq