簡體   English   中英

從 wsdl 創建 SOAP 請求

[英]Creating SOAP request from wsdl

我需要為 wsdl 的一項操作創建 SOAP 請求 xml。 我研究並嘗試了博客“ Java: Get Sample Request XML from wsdl ”的解決方案,但我在“WsdlProject project = new WsdlProject”行中得到異常“java.lang.NoClassDefFoundError: org/fife/ui/rtextarea/RTextArea” ();"

我導入了最新的 jars (soapui-xmlbeans-4.5.0,wsdl-xmlbeans-1.1,soapui-4.5.0) 但仍然拋出異常。 任何人都可以“ http://www.soapui.org/repository/eviware/ ”請建議我如何糾正它。 除了這個,我還有其他方法嗎?

提前致謝 !!

1. Create a Java Project: File->New->Other->Java Project. (TestWSDL)
2. Create a WSDL File: File->New->Other->Web Services->WSDL File-> Name the file->Next->finish. (NewWSDLFile.wsdl)
3. Modify the WSDL File: Open NewWSDLFile.wsdl and replace all its content by your desired WSDL file.Save it. (Suppose I have saved my desired wsdl file at D:\sampleWSDL.xml, which i want to convert. Open this xml file using Notepad++,copy all its content and paste it to NewWSDLFile.wsdl)
4. Create Web Service Client: File->New->Other->Web Services->Web Service Client->Next->Browse Service definition and show the path of the NewWSDLFile.wsdl file we created at step 2 ->OK-> 5. Click Client Project(blue colored link at right) and set it to the project we created at step
6. Press Next -> Set Output Folder->Finish.
7. You will have all the converted Java files at the folder you set at step 5.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM