Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File Attachement WebService issue using Datahandler

 
Vijay Anand
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am developed webservice which is help to receive file attachement.

here javax.activation.DataHandler i am using.

fileUpload(String filename, DataHandler dh) - WebMethod in my Webservice.

i able to create WSDL also i able to receive file successfully in my local env.

When i put my WSDL in SoapScope or x Ray(Webservice testing tool)

i am received below Error

**************************



Invalid schema format: src-resolve.4.2: Error resolving component 'att atahandler'. It was detected that 'att atahandler' is in namespace 'http://www.bea.com/servers/wls90/wsee/attachment', but components from this namespace are not referenceable from schema document. If this is the incorrect namespace, perhaps the prefix of 'att atahandler' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added.

**************************************************

Please let me know the soluation or some idea regarding this.

Thanks and Regards,
VijayAnand
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64858
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"vijayanand",

There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
JavaRanch Sheriff
 
Doshi Milan
Ranch Hand
Posts: 112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am not much familiar with Webmethods but I know and I had created webservices in WebMethods using Flow Services and than publishing it as web service. This way WebMethods hides the complexity of Schema / WSDL from the developer.

Thus, what I would like to know is : Did you create the Schema /WSDL in webmethods or did the tool did it on ots own ? My guess would be the later and what I further guess is you just picked up that Schema and / or WSDL and tried it in some other tool. Thats ok, provided you pick up ALL relavant schemas. Just as a Java Class referring some other Java Class in some other library would require the other library to be present as well, I feel you are NOT importing ALL the schemas in your new tool.

Note : I am guessing here based on whatever information you have provided. As a thumb rule, I treat namespace issues in Schemas / wsdl like package issues in Java src code

Hope this helps...

Milan Doshi
 
Vijay Anand
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Milan Doshi,

Thanks for Reply.

i done this webservice using Weblogic workshop 9.2. when i used datahandler as a parameter in my webmethod in webservice corresponsing schema created atomatically like as below

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.bea.com/servers/wls90/wsee/attachment" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="datahandler">
<xs:annotation>
<xs ocumentation>Internal type created by WebLogic - Do not edit!</xs ocumentation>
</xs:annotation>
</xs:complexType>
</xs:schema>

can you please let me know how we import the corrersponding package.


Thanks and Regards,
Vijay Anand
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic