InfoPath 2013: VSTA 2.0 web service breaks project
Some time ago an InfoPath form was build in InfoPath 2010 with two Web Services in its code behind. In order to edit the form with InfoPath 2013, a fresh project was made and the necessary components were moved from the existing project to the new one.
When testing the form, everything worked fine. However, after closing and opening the form, when trying to open the Code Editor, the following message was returned: "The system cannot find the path specified."
After some investigating I was able to reproduce the error on two distinct machines as follows:
Create a new InfoPath 2010 Filler Form
Create a Code Project with target version: InfoPath 2010
Note that if you now save the form, then close and open it again, everything is still fine.
Add a Web Reference
I added <SharePoint 2010>/_vti_bin/lists.asmx
Now save and close the project, save and close the form, open the form and open the Code Editor
Observe the error message :'(
Note that you can still open (and fix) the project with VS2012. You will have to delete both the web service AND the Web References folder to be able to open the project in InfoPath again.
If you are able to reproduce this problem, please leave a comment. If you have a solution, even better.
Ok, problem solved! Well, sort of, but I think this solution works better.
As Ruud has discovered, the problem relates to InfoPath getting confused about the SharePoint web reference. In fact, when running SysInternals ProcMon, I noticed a suspicious entry:
INFOPATH.EXE - Create File - C:\Users\david\My Documents\InfoPath Projects\Form1\http:\sharepoint\_vti_bin\lists.asmx%3fwsdl - NAME INVALID
That does certainly look like an invalid name! So, to work around this, simply stop using a web reference! Instead, start by adding a web reference (could be in a different VS project), and copy the generated Reference.cs file into your InfoPath code project!
You'll need to make one tweak (a console project would use Properties for the URL), but other than that it will work fine.
The one disadvantage to this approach is that you don't get to update the reference automatically, but you don't care because it's a reference to SP that will not change.
Similar Messages
-
Hello everyone. I am having trouble writing a utility that uses SharePoint web services to upload a file and metatag it. It keeps throwing the following error message:
"The request failed with the error message: -- <html><head><title>Object moved</title></head><body> <h2>Object moved to <a href="/_forms/default.aspx?ReturnUrl=%2fsites%2fgk%2f_vti_bin%2fcopy.asmx">here</a>.</h2>
</body></html> --."
Not sure why. I pass the file that I am going to upload to the subroutine and it is suppose to upload it to the appropriate library. I have burned several days on this problem and I am not sure what is going on. I would appreciate anyone that can point me in
the right direction. Below is the subroutine that I have that is causing the problem. Obviously, I have stripped the name from the example.
Thanks
Mike
******** <Begin snip of code> **********************
Public Shared Sub CreateNewDocumentWithCopyService(ByVal fileName As String)
Dim c As New copyservice.Copy
c.PreAuthenticate = True
c.Credentials = New System.Net.NetworkCredential("[email protected]", "mypassword")
c.Url = "https://x.sharepoint.com/sites/gk/_vti_bin/copy.asmx"
Dim myBinary As Byte() = System.IO.File.ReadAllBytes(fileName)
Dim destination As String = "https://x.sharepoint.com/sites/gk/Gatekeeper%20Reference/" & System.IO.Path.GetFileName(fileName)
Dim destinationUrl As String() = {destination}
Dim info1 As New copyservice.FieldInformation
info1.DisplayName = "Title"
info1.InternalName = "Title"
info1.Type = copyservice.FieldType.Text
info1.Value = "new title"
Dim info2 As New copyservice.FieldInformation
info2.DisplayName = "Modified By"
info2.InternalName = "Editor"
info2.Type = copyservice.FieldType.User
info2.Value = "-1;#servername\\testmoss"
Dim info As copyservice.FieldInformation() = {info1, info2}
Dim resultTest As New copyservice.CopyResult
Dim result As copyservice.CopyResult() = {resultTest}
Try
' When creating new content use the same URL in the SourceURI as in the Destination URL argument
c.CopyIntoItems(destination, destinationUrl, info, myBinary, result)
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
******** <End snip of code> **********************Hi,
If you want to upload a file to a library in SharePoint 2013 online, I suggest you use Client Object Model or REST API.
The code snippets in the two threads below will be helpful:
http://social.technet.microsoft.com/Forums/sharepoint/en-US/deac7cb7-c677-47b0-acdc-c56b32dfaac8/uploading-bigger-files-using-csom
http://stackoverflow.com/questions/17057074/how-to-download-upload-files-from-to-sharepoint-2013-using-csom
Uploading Files Using the REST API
http://blogs.msdn.com/b/uksharepoint/archive/2013/04/20/uploading-files-using-the-rest-api-and-client-side-techniques.aspx
You can handle the authentication with
SharePointOnlineCredentials object:
http://www.vrdmn.com/2013/01/authenticating-net-client-object-model.html
Best regards
Patrick Liang
TechNet Community Support -
BizTalk Server 2013 R2 Orchestration as web service with untyped messages.
Hi,
I have created an orchestration in BizTalk server 2013 R2 which receives and send untyped messages to an public Request-Response port. And am trying to publish this orchestration as web service, am getting "Object reference not set to an instance"
error in the Publish Web service wizard. I didn't find any error details in event viewer.
Please let me know what is the issue with this and how resolve this.
Thanks,
Praveen
Praveen"Object reference not set to an instance" issue +Orchestration as WCF service + BizTalk
2013 R2 ..has no relation.
Just created an Orchestration, which would accept XMLDocument as input (Request) message and output (Response) message in both BizTalk 2013 and also in 2013 R2.
I can expose the Orchestration as WCF service without any issues as mentioned here and can able to send and get any XMLDocument to this server (Which is an Orchestration)
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply. -
Web Service Proxy Project Grayed Out in App with All Technologies
I have created a new application with "No Template [All Technologies]" in Jdev 10.1.3.5.0.4306. I want to create a web service proxy, but there are many choices grayed out, including the web service proxy. The only selection available under the Business Tier --> Web Services is the UDDI Registry Connection. Any ideas on what I need to do?
I just downloaded JDev 10.1.3.5 from Oracle and I get the same issue.
Thanks
Edited by: 878316 on Apr 2, 2012 6:03 PMHi there,
On your project properties (double click on the project name) go to Technology Scope if you are in 11.1.1.6.0 or Features if you are in 11.1.2.x then select web services, click ok and now when you go to new all your Webservices options should be enable.
- Juan C. -
Web Service Client: Project Additional Classpath contributor not working?
I've created a simple web service client/proxy and it works when debugging and running in JDeveloper 10.1.3.3
I created a deployment profile that includes "Project Additional Classpath". The preview does not show any of the jar dependencies being included and the client application does not run because it is missing the dependencies.
Am I missing something simple here? I've searched forever on this with no luck (it's now 2am!)
Help is much appreciatedFrank,
Thank you for your reply. The funny thing is that I had known how to do this in the past.
I have to say. The layout of that screen just is not intuitive.
First, if you select file groups\project output\Contributors and select "Project Additional Path" you would think that you'd either get to select the class libraries there or at least in the filters screen.
Second, the new button on the lower left, beneath the tree control when selecting the File Groups node is an arrangement I havn't seen used in any other application. Usually when you select a tree node, the right side window would have a tool bar over an arrangement of the sub-nodes/folders and you would click new on that tool bar. The new button goes completely unnoticed where it is. I'm sure it's nothng once you get used to it but for a noob like me, it wasn't apparent
I took a brief look at 11g and it seems they're changing some of the screens so perhaps this stuff will become more intuitive.
Thank you for your help. -
Assistance required for J2EE/XML/Web Services development project in Bangal
Hello,
I work for a US based entrepreneur. who holds a Doctorate in Computer Science and MBA from MIT and we are setting up our office in Bangalore. We are on the look out for Qualified and Experienced J2EE professionals to assist in the implementation of our projects. Some of the projects that we are working for will be very interesting and will require highly skilled and experienced Software professionals who have working experience on J2EE/XML/Web Services
We are looking for Experienced Candidates experienced in J2EE and have many positions open for experienced candidates and the Positions includes Technical team leaders, Senior Software developers, etc. The ideal candidates will be those who have passion for creating new applications using cutting edge technologies.
We are also open to Experienced to candidates working for us on a part time basis for a fixed number of Hours per day (say about 3 to 4 Hours per day) and over the weekends. Please pass this on to any of your friends who may be interested in this opportunity.
Anyone interested can respond to this message and please send me your mobile number or e mail address and I will get in touch with you.
Regards
RajHi Raj, Wrong Initiative.
*=================> Please don't spoil the forum. <=================*
I am sorry if you find this a bit rude or like that, but this a technical discussion forum not a job portal where you should find candidates for your organization.
rajhyd wrote:
Anyone interested can respond to this message and please send me your mobile number or e mail address and I will get in touch with you.I think instead of this you should make your email address visible in your current profile, so that people can reply you on that instead of expressing their interest here.
*All the best for your new venture,
typurohit* (Tejas Purohit) -
SharePoint 2013 error 8059 & Excel Web service issues
Hello
The issues I am getting is a 8059 error "and exception occurred when trying to issue security
token" it then asks me to turn on "includeexceptiondetailsinfaults" whichIi try to do on the security token service web.config. when I do this it Error 500's and I can't even access the SharePoint site, once I remove the code line I can access
the site but cant get any more information regarding the errors .
Any suggestions? In the ULS logs the error appears on numerous occasions.
Next issue is regarding Excel web access, it reports an error of "we're sorry we ran into a
problem completing your request. please try again in a few minutes"
I tried switching form workbook url to local but I am not sure if that's the solution, I have seen
that it resolved the issue for other users but not for me.
Code Below
The ULS logs report a number of entries the key one's being regarding load balancing.
It seems to suggest UNC or permissions but I don't know where to go from here.
05/22/2014 17:08:08.16 w3wp.exe (0x0E20) 0x1FB0 Excel Services Application Browser ajfya Medium MossHostHelperMethods.IsUserLicensedForExcelServices:
User passed 'ExcelServices' license check. d66d939c-c124-d0d5-5242-d280742cae03
05/22/2014 17:08:08.16 w3wp.exe (0x0E20) 0x1FB0 Excel Services Application Browser alv5s Medium ExcelWebRenderer.OnLoad:
Starting loading external EWR d66d939c-c124-d0d5-5242-d280742cae03
05/22/2014 17:08:08.18 w3wp.exe (0x0E20) 0x1FB0 Excel Services Application Excel Calculation Services ai4hl
Medium MossHost.GetSPFile: exception System.ArgumentException: Value does not fall within the expected range. at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
at Microsoft.Office.Excel.Server.MossHost.MossHost.TryGetSPFile(SPWeb web, String fileUri, SPFile& file) accesing SPFile for url = https://sharepoint2013.bpdconsulting.co.uk/SA/Shared Documents/Business Development/Documents List.xlsx, possibly UNC or
permissions d66d939c-c124-d0d5-5242-d280742cae03
05/22/2014 17:08:08.18 w3wp.exe (0x0E20) 0x1FB0 Excel Services Application Browser ajfya Medium MossHostHelperMethods.IsUserLicensedForExcelServices:
User passed 'ExcelServices' license check. d66d939c-c124-d0d5-5242-d280742cae03
05/22/2014 17:08:08.18 w3wp.exe (0x0E20) 0x1FB0 Excel Services Application Excel Calculation Services ai4hl
Medium MossHost.GetSPFile: exception System.ArgumentException: Value does not fall within the expected range. at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
at Microsoft.Office.Excel.Server.MossHost.MossHost.TryGetSPFile(SPWeb web, String fileUri, SPFile& file) accesing SPFile for url = https://sharepoint2013.bpdconsulting.co.uk/SA/Shared Documents/Business Development/Documents List.xlsx, possibly UNC or
permissions d66d939c-c124-d0d5-5242-d280742cae03
05/22/2014 17:08:08.18 w3wp.exe (0x0E20) 0x1FB0 Excel Services Application Browser ajfya Medium MossHostHelperMethods.IsUserLicensedForExcelServices:
User passed 'ExcelServices' license check. d66d939c-c124-d0d5-5242-d280742cae03
05/22/2014 17:08:08.18 w3wp.exe (0x0E20) 0x1FB0 SharePoint Server Logging Correlation Data xmnv
Medium User=i:0#.w|bpdconsulting\gharwood d66d939c-c124-d0d5-5242-d280742cae03
05/22/2014 17:08:08.18 w3wp.exe (0x0E20) 0x1FB0 Excel Services Application Web Front End 6k3v
Medium LoadBalancer.GetNextServer: failed to get server using load balancing scheme Local, falling down to health base d66d939c-c124-d0d5-5242-d280742cae03
05/22/2014 17:08:08.18 w3wp.exe (0x0E20) 0x1FB0 Excel Services Application Web Front End abho
Monitorable ServerSession.GetNextServerHealthBased: There are no healthy servers although the number of available server in the farm is 1; updated with no candidates available for the health based load balancing. The update duration was 0 millisecs
d66d939c-c124-d0d5-5242-d280742cae03
05/22/2014 17:08:08.18 w3wp.exe (0x0E20) 0x1FB0 Excel Services Application Web Front End ablz
Monitorable LoadBalancer.GetNextServerHealthBased: There are no healthy server in the farm d66d939c-c124-d0d5-5242-d280742cae03
05/22/2014 17:08:08.18 w3wp.exe (0x0E20) 0x1FB0 Excel Services Application Web Front End abgn
Medium LoadBalancer.GetFailoverServer: Failed to get a failover server using health based load balancing scheme. d66d939c-c124-d0d5-5242-d280742cae03
05/22/2014 17:08:08.18 w3wp.exe (0x0E20) 0x1FB0 Excel Services Application Browser aeh11 Medium EwaState.OpenWorkbookAndUpdateState:
errors occurred while trying to open the workbook, [MessageId: RetryError, MessageIdHash: -80526566] d66d939c-c124-d0d5-5242-d280742cae03
05/22/2014 17:08:08.18 w3wp.exe (0x0E20) 0x1FB0 Excel Services Application Excel Calculation Services ai4hl
Medium MossHost.GetSPFile: exception System.ArgumentException: Value does not fall within the expected range. at Microsoft.SharePoint.SPWeb.GetWebRelativeUrlFromUrl(String strUrl, Boolean includeQueryString, Boolean canonicalizeUrl)
at Microsoft.Office.Excel.Server.MossHost.MossHost.TryGetSPFile(SPWeb web, String fileUri, SPFile& file) accesing SPFile for url = https://sharepoint2013.bpdconsulting.co.uk/SA/Shared Documents/Business Development/Documents List.xlsx, possibly UNC or
permissions d66d939c-c124-d0d5-5242-d280742cae03
05/22/2014 17:08:08.19 w3wp.exe (0x0E20) 0x1FB0 Excel Services Application Browser 3kddWe've seen this error when the system was under load using SharePoint 2013 workflows. We tracked it back to problems with the distributed cache service. The fix is supposed to be applying CU3 or CU4 for the AppFabric Cache and potential changing some of
the timeouts for the distributed cache. Take a look at this article:
http://habaneroconsulting.com/insights/SharePoint-2013-Distributed-Cache-Bug#.U3yUE_mSwsa
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
HTTP Web Service in SP Designer 2013 Workflow calling WCF Service - 401 403 Error
Because of the limitations of SP Designer URL's I've had to create a custom webservice to Publish, Checkin, Approve etc.... I pass the List ID and a comment as parms in the HTTP POST. The WCF lives in the /15 ISAPI directory as it should.
I setup 3 dictionaries:
POST_RequestHeader
content-type: application/json;odata=verbose, accept:application/json;odata=verbose, X-HTTP-Method: MERGE, IF-MATCH:*,Authorization:
If I don't include Authorization as null, I get a 401. With this I get a 403.
POST_Metadata
type string "name of my SP.Data category from tyhe list"
POST_Parameters
__metadata with the name of POST_Metadata
Call the webservice in SP DESIGNER 2013
Http://Mysitecollection/_vti_bin/MyWCFService/MyWCFService.svc/MyPublish/?id=123&comment='BasicTest2'
RequestHeaders set to POST_RequestHeader
RequestContent set to POST_Parameters
The Interface correctly maps and routes me to the method. The document is in Draft state ready for "Publish a Major version".
I cannot get past the security errors. My GET methods work fine. Any thoughts? How can I pass the proper credentials?
I'm running in an App Step and have granted workflows elevated privileges so no problem there.
Thanks.
using (SPSite siteCollection = new SPSite("myservercollectionurl"))
using (SPWeb web = siteCollection.OpenWeb())
SPWeb site = siteCollection.RootWeb;
SPList corpPol = site.Lists["Our Policies"];
SPListItem spListItem = corpPol.GetItemById(id);
SPFile file = spListItem.File;
trace = "In SPsite Loop" + spListItem["Title"].ToString();
<--- Title is written OK to log
diagSvc.WriteTrace(0, category, TraceSeverity.Verbose, trace);
if (file.CheckOutType == SPFile.SPCheckOutType.None)
spListItem.File.Publish("done in WCF");
<-- Blows everytime with 403 Forbidden
This is in the Sharepoint logs:
System.Runtime.InteropServices.COMException (0x8102006D): The security validation for this page is invalid. Click Back in your Web browser, refresh the page, and try your operation again. at Microsoft.SharePoint.SPFile.PublishOrUnPublish(String
comment, Boolean fPublish)
TomHi Tom,
Here are two blogs for you to check:
Using SharePoint REST services from workflow with POST method
http://mysharepointinsight.blogspot.com/2013/05/using-sharepoint-rest-services-from.html
SharePoint Designer 2013 Workflow: Working with Web Services
http://blog.appliedis.com/2014/10/09/sharepoint-designer-2013-workflow-working-with-web-services/
We can use the fiddler to compose the HTTP POST method with the properly request headers and request body, then create your workflow.
http://www.fabiangwilliams.com/2013/09/03/more-on-sharepoint-2013-rest-api-with-fiddler-and-spd/
Best Regards
Dennis Guo
TechNet Community Support -
Lync 2013 Director web services missing Persistant Chat
When deploying Lync 2013 Director server the web services are missing the virtual directory for Persistent Chat. Persistent Chat is using the same URL as other Lync web services, but since the directory is missing in the Director IIS, Persitent Chat failes.
If I use the Front End for web services Persistent Chat works fine. Has anyone seen this or maybe implemented a workarround?
Regards
StianI generally publish the front end pool's external web services FQDN for this. If you're using a reverse proxy, you should be able to redirect individual virtual directories to various internal pools, but I would just point this and all simple URLs
to a central front end pool.
Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
SWC Unified Communications -
Manage Orchestration by Web Service
For handing exception of Orchestration in Biztalk, does it possible to correct the message content and resume the Orchestration by web service or sharepoint outside Biztalk Admin Console?
I am using Biztalk 2009 in my projectWhat you want to implement is repair and resubmit pattern. <o:p></o:p>
One options as discussed by the below blogpost (in reference) is using SharePoint and InfoPath. You can have a custom exception handler where BizTalk can
write out the failed message to a forms library, then users could click a link there and edit the failed message in InfoPath. When ready, the user clicks “re-submit”
which InfoPath could send to a web service which can resent the message to BizTalk.
http://www.brianloesgen.com/blog/2007/6/24/when-biztalk-meets-sharepoint-it-makes-sense.html
Other options is explore the how the Repairing and Resubmitting has been implemented in ESB portal. Its uses the combination of ESB web services and InfoPath, you can
either resuse this functionality in ESVB portal or you can create your similar to ESB portal.
ESB Portal: Collecting Exceptions and Routing Messages for Repair and Resubmit
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply. -
I have created a Web Service Proxy project in Jdev using BI Publisher 11.1.1.5.0 WSDL (ReportService). Generated ReportService_Service method uses following QName to get the port:
namespaceURI = "http://xmlns.oracle.com/oxp/service/v2"
localPart = "*v2/ReportService*"
Reports are generated successfully via Web Services when using BI Publisher 11.1.1.5.0 but when I use BI Publisher 11.1.1.6.x, it fails with this exception:
+'javax.el.ELException: javax.xml.ws.WebServiceException: {http://xmlns.oracle.com/oxp/service/v2}v2/ReportService is not a valid port. Valid ports are: {http://xmlns.oracle.com/oxp/service/v2}ReportService'+
I noticed that if the Web Service Proxy project is created using BI Publisher 1.1.1.1.6.0 WSDL (ReportService), the generated ReportService_Service method uses following QName to get the port:
namespaceURI = "http://xmlns.oracle.com/oxp/service/v2"
localPart = "*ReportService*"
We are supporting both 11.1.1.5.0 and 11.1.1.6.x, so is there a way to make it work with both.
FYI, I have tried removing v2 but then it only works with 11.1.1.6.0 and fails with 11.1.1.5.0.
+Caused By: javax.xml.ws.WebServiceException: {http://xmlns.oracle.com/oxp/service/v2}ReportService is not a valid port. Valid ports are: {http://xmlns.oracle.com/oxp/service/*v2}v2/*ReportService+Dear,
found the solution (after trying last 1-2 days ...).
I was already using java 1.7 update 7.
I had to start java settings and to deselect Java 1.7.0_07.
Instead I selected latest Java version from Apple: 1.6.0_35-b10-428.
With these settings the installer finishes without crash.
Kind regards
Lorenz
Edited by: Lorenz on Oct 4, 2012 1:47 PM -
Web Service Proxy wizard doesn't open up in edit-mode anymore
I've created a web service proxy project for my existing bpel processes and since the bpel processes server has changed, the endpoint has changed as well.
When I update the endpoint in the <webservicename>_Stub.java file from the webservice proxy client everything works fine.
But when I try to go back in edit-mode inside the wizard, the wizard complains about the old endpoint url of the bpel process. If I search in the project after that specific hostname, I can't find any file or folder referring to the old url.
Could somebody explain me why I can't invoke the wizard anymore for a web service proxy client if the endpoint has changed?
Kind Regards,
NathalieHi Nathalie,
Which version of JDeveloper are you using?
With the latest release, 11g Tech Preview 2, I don't think you can re-enter the wizard by double-clicking on the service proxy icon on the application navigator tree.
From the context menu, the only option is to edit handlers, add custom mapping, security or reliability.
I have found that using ant-based tasks is a better way to get predictable and reproducable outputs, even if the learning curve is not easy.
Here is just a snippet to give you a concret sample:
<target name="genproxy">
<delete dir="./gen_src"/>
<o :genProxy wsdl="http://${endpoint.host}/pge/webservice?WSDL" output="./gen_src"/>
<o :genProxy wsdl="http://${endpoint.host}/pge/webservice?WSDL"
mapheaderstoparameters="true" databinding="false" output="./gen_src"
packagename="com.selectg"/>
</target>Hope it helps,
-Eric
I add an extra space in the XML, so that the o: prefix is displayed in the XML snippet
Message was edited by:
erajkovi -
Deserialization Error while invoking web service from JDeveloper 10g
When we tried to invoke a web service from JDeveloper version 10.1.3.4.0.4270, we got deserialization error.Here are the steps that we did to invoke the web service.
1. Using WSDL URL, downloaded WSDL file and associated XSD files into local machine using wsa.jar utility.
2. Using JDeveloper, created web service proxy project by referring the local WSDL file.Proxy got generated successfully.
3. Secured the proxy using "secure proxy" option.
4. Assigned all required values for parameters for web method.
5. When tried to invoke the web service, got deserialization error.
Exception in thread "main" deserialization error: java.lang.NumberFormatException
at oracle.j2ee.ws.common.encoding.literal.LiteralSimpleTypeSerializer.deserialize(LiteralSimpleTypeSerializer.java:155)
at com.oracle.xmlns.apps.ego.extfwk.service.out.runtime.ValuesetType_LiteralSerializer.doDeserialize(ValuesetType_LiteralSerializer.java:151)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)
at com.oracle.xmlns.apps.ego.extfwk.service.out.runtime.ListOfVSType_LiteralSerializer.doDeserialize(ListOfVSType_LiteralSerializer.java:67)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)
at com.oracle.xmlns.valuesetservice.runtime.GetVSRespType_LiteralSerializer.doDeserialize(GetVSRespType_LiteralSerializer.java:57)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)
at pimut.proxy.runtime.ValuesetServiceSoapHttp_Stub._deserialize_getValueSetDetails(ValuesetServiceSoapHttp_Stub.java:129)
at pimut.proxy.runtime.ValuesetServiceSoapHttp_Stub._readFirstBodyElement(ValuesetServiceSoapHttp_Stub.java:115)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:334)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:113)
at pimut.proxy.runtime.ValuesetServiceSoapHttp_Stub.getValueSetDetails(ValuesetServiceSoapHttp_Stub.java:79)
at pimut.proxy.ValuesetServiceSoapHttpPortClient.getValueSetDetails(ValuesetServiceSoapHttpPortClient.java:40)
at pimut.ValuesetServiceClient.get_object(ValuesetServiceClient.java:87)
at pimut.ValuesetServiceClient.main(ValuesetServiceClient.java:34)
CAUSE:
java.lang.NumberFormatException
at oracle.j2ee.ws.common.encoding.literal.LiteralSimpleTypeSerializer.deserialize(LiteralSimpleTypeSerializer.java:155)
at com.oracle.xmlns.apps.ego.extfwk.service.out.runtime.ValuesetType_LiteralSerializer.doDeserialize(ValuesetType_LiteralSerializer.java:151)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)
at com.oracle.xmlns.apps.ego.extfwk.service.out.runtime.ListOfVSType_LiteralSerializer.doDeserialize(ListOfVSType_LiteralSerializer.java:67)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)
at com.oracle.xmlns.valuesetservice.runtime.GetVSRespType_LiteralSerializer.doDeserialize(GetVSRespType_LiteralSerializer.java:57)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:250)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:159)
at pimut.proxy.runtime.ValuesetServiceSoapHttp_Stub._deserialize_getValueSetDetails(ValuesetServiceSoapHttp_Stub.java:129)
at pimut.proxy.runtime.ValuesetServiceSoapHttp_Stub._readFirstBodyElement(ValuesetServiceSoapHttp_Stub.java:115)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:334)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:113)
at pimut.proxy.runtime.ValuesetServiceSoapHttp_Stub.getValueSetDetails(ValuesetServiceSoapHttp_Stub.java:79)
at pimut.proxy.ValuesetServiceSoapHttpPortClient.getValueSetDetails(ValuesetServiceSoapHttpPortClient.java:40)
at pimut.ValuesetServiceClient.get_object(ValuesetServiceClient.java:87)
at pimut.ValuesetServiceClient.main(ValuesetServiceClient.java:34)
Caused by: java.lang.NumberFormatException
at java.math.BigDecimal.<init>(BigDecimal.java:457)
at java.math.BigDecimal.<init>(BigDecimal.java:647)
at oracle.j2ee.ws.common.encoding.simpletype.XSDDecimalEncoder.stringToObject(XSDDecimalEncoder.java:51)
at oracle.j2ee.ws.common.encoding.literal.LiteralSimpleTypeSerializer.deserialize(LiteralSimpleTypeSerializer.java:142)
... 17 more
Process exited with exit code 1.
We think that the exact cause for the problem is as follows.
1. If we check the XSD file corresponds to response object, for one of the element, the type is decimal
<xsd:element minOccurs="0" name="ParentValueSetId" nillable="true" type="xsd:decimal"/>
2. In the SOAP response, this element is empty so during deserialization, the numer format exception occurred in LiteralSimpleTypeSerializer class.
Any help is greatly appreciated.Hi Suresh & Mukesh,
Suresh:
I started the service by going through the following path System Administrator > System Configuration > Service Configuration > Application > <SERVICE_NAME> in system configuration of portal
Mukesh: Here I don't have any proxy settings.
Can you please let me know where I'm going wrong.
Thanx,
Dheeram -
Web Service From Java class, serialization problem
Hi,
I want to create Web Service from Java class, I made java project, generated web service from it, create web service archive project and deployed it to WAS 6.40.
My class have 2 methods,
public int add(int a, int b);
public MyResponse doSomthing(MyRequest req);
I can succesfully call add method from Web Service Navigator, it works fine but when I call doSomthing methods I get the following error:
<b>
Deserializing fails. Nested message: XML Deserialization Error. Result class [com.mycomp.sap_tech.ws.MyRequest] does not have property [Amount] of type [java.lang.String]. It is required to load XML..
</b>
Any ideas how to resolve it?
P.S. MyRequest class is exposed throw VI, has default constractor and public getters and setters for all properties. It implements Serializable as well. Any guesses?
Thanks in advance,
Victor.Hi Bhavik, thanks for response.
as I already mentioned it implements Serializable, so it is not the problem.
Thanks Avi but it didn't helps iether
Victor -
Hi All,
I have created and deployed a Java web service banking project now i want use this web services methods into .net clint. For that in .net peoples able to see the list of web services mathods when they are use those methods they face the problem like "Web services build error...". But when the java clint call the same web services methods it works fine.
Im tired to resolved this problem please any one tel me how to resolve this problem.
Thanks,
kalyan NBoth. I deployed the application under the IAS (902) and a standalone (903)environment. The IAS (port 7777) an the standalone oc4j (port 8888) is running with the same error.
P.S. The server is down today for hardware technical reasons
Maybe you are looking for
-
How to reformat '06 Macbook Pro - cannot reach desktop
I have a 2006 Macbook Pro. I try and boot it but I cannot reach the desktop. My plan is to try and reformat it with 10.6.7 Snow Lep or 10.7 Lion (does Lion work with '06 Macbook Pro's, how about Mountain Lion?) But here is the issue. I cannot access
-
Is there a good EASY RSS app for Maverick
I use RSS feeds a lot and since Maverick update, have not found a good app. I really miss that Maverick does not allow RSS receipts in mail.
-
I cannot figure out why i cannot Mirror image.
-
Hi, When i try to post cancellation of Credit memo Document(ZS20) to Accounting i am getting error Incorrect Document no 412000146. Select document number between 5110000001 to 5150999999 in VOFA invoice doc no range is 19:- 812000001 to 815099999 &
-
Open With Context Menu acting up
It seems as if using Time machine allows old versions of applications to appear in the "open with" menu. Is that sensible? How can I turn it off? I don't really want to mistakenly open files in old versions of applications....