Quantcast
Channel: PTC Community: Message List
Viewing all 12591 articles
Browse latest View live

Fetch attachments of file names having a + character, using SoapUI

$
0
0

Hello,

 

I am trying to fetch attached files from Integrity 10.6 server using  soap requests.

 

I tested SoapUI 5.2.1  from SmartBear

 

Our Integrity web service  location looks something like http://server:port/webservices/10/2/Integrity/

 

But whenever the filename contains a + character, the downloaded size is 0 (see also below in red colour what SoapUI responds)

 

Example of file names having this problem:

T+S.txt

Moto+S.docx

 

I tried both text files  and binary files

 

For other attached file names, without a + character in their names, I can successfully download the files, without problems.

(e.g. ABC.pdf or SomeImage.png)

 

The request in SoapUI looks like this for  T+S.txt

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:int="http://webservice.mks.com/10/2/Integrity" xmlns:sch="http://webservice.mks.com/10/2/Integrity/schema">
   <soapenv:Header/>
   <soapenv:Body>
      <int:fetchAttachments>
         <!--Optional:-->
        <arg0 transactionId="?" AttachmentName="T+S.txt" FieldName="Attachments" sch:ItemId="122925">

 

    <sch:Username>myusername</sch:Username>
            <sch:Password>mypassword</sch:Password>
                    


         </arg0>
      </int:fetchAttachments>
   </soapenv:Body>
</soapenv:Envelope>

 

The response in SoapUI looks like this for  T+S.txt

 

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">

   <env:Header/>

   <env:Body>

      <ns3:fetchAttachmentsResponse xmlns:ns1="http://webservice.mks.com/10/2/Integrity/schema" xmlns:ns3="http://webservice.mks.com/10/2/Integrity">

         <return>

            <ns1:Attachment>

               <xop:Include href="cid:Attachment-d4cd8052-95e6-44e2-86dc-4528fbba28f1@ws.jboss.org" xmlns:xop="http://www.w3.org/2004/08/xop/include"/>

            </ns1:Attachment>

         </return>

      </ns3:fetchAttachmentsResponse>

   </env:Body>

</env:Envelope>

 

Transfer-Encodingchunked
DateWed, 24 Aug 2016 11:51:52 GMT
#status#HTTP/1.1 200 OK
Content-Typemultipart/related; type="application/xop+xml"; start=""; start-info="text/xml"; boundary="----=_Part_3130_1893697822. 1472039512407"
ServerPTC Integrity Server

 

                Name                                                                                    Content-Type  Size Part 

                           

Attachment-d4cd8052-95e6-44e2-86dc-4528fbba28f1@ws.jboss.orgtext/plain0Attachment-d4cd8052-95e6-44e2-86dc-4528fbba28f1@ws.jboss.orgXOP

 

 

 

2. Something similar  happens if I try to download such files having a + character inside their file name, using a Java SOAP web service client.

 

I get the following runtime error :

 

24-Aug-2016 14:40:48, Internal_Error, com.sun.xml.internal.org.jvnet.mimepull.MIMEParsingException: Reached EOF, but there is no closing MIME boundary.

at com.sun.xml.internal.org.jvnet.mimepull.MIMEParser.readBody(Unknown Source)

at com.sun.xml.internal.org.jvnet.mimepull.MIMEParser.access$600(Unknown Source)

at com.sun.xml.internal.org.jvnet.mimepull.MIMEParser$MIMEEventIterator.next(Unknown Source)

at com.sun.xml.internal.org.jvnet.mimepull.MIMEParser$MIMEEventIterator.next(Unknown Source)

at com.sun.xml.internal.org.jvnet.mimepull.MIMEMessage.makeProgress(Unknown Source)

at com.sun.xml.internal.org.jvnet.mimepull.DataHead.read(Unknown Source)

at com.sun.xml.internal.org.jvnet.mimepull.MIMEPart.read(Unknown Source)

at com.sun.xml.internal.ws.encoding.MIMEPartStreamingDataHandler$StreamingDataSource.getInputStream(Unknown Source)

 

import javax.activation.DataHandler;

import javax.activation.DataSource;

import javax.activation.FileDataSource;

 

AttachmentRequest arg = new AttachmentRequest();
            arg.setUsername(userName);
            arg.setPassword(password);
            arg.setAttachmentName(attachmentName);
            arg.setFieldName(fieldName);
            arg.setItemId(BigInteger.valueOf(itemID));
            AttachmentContents atc = ws.getEndPoint().fetchAttachments(arg);

          
           DataHandler dh = atc.getAttachment();
                  
           DataSource ds =  dh.getDataSource();
          
           ds.getName() -> I see the name
           ds.getContentType() -> I see the content type
          
           ds.getInputStream() -> when I try to read the input stream, I get the exception above

 

Any hint ? Thanks !


Creo Elements Direct Modeling Express 6.0 - program crashes

$
0
0

I have a problem with opening saved projects. I can normaly start the program and work with it, also save a new projekt.

But when I open a stored project, the program crashes. (See error message). At my Laptop I can this projekt open, it is o.k.

I have already repeatedly reinstalled the program, also older versions. The problem was always the same.

My OS is Windows 10 Home Edition 64bit, the same is on the Laptop.

Does anyone know, what may be the cause or has anyone even this problem?

Re: Open different windows mathcad 15

$
0
0

Werner Exinger wrote:

 

...I tried to use Mathcad on my desktop machine by connecting to this machine via remote desktop from a notebook with no MC installed. Mathcad refuses to work as of license limitations. This was silly, as I have no server windows on my desktop, so by connecting via RDP it would not have been possible to use the program multiple times.

The license on my desktop was a fixed one. One day I have to try to do the very same when I switch the license on my desktop machine to use a floating flex license. But I guess the security mechanism is dumb enough and the result would be the very same...

 

 

Have you tried to use TeamViewer program for remote access?

Re: Finding the constants of an ODE

$
0
0

Hi Iulia,

you need four initial conditions:

sol1.jpg

Re: Is Windchill flakey?

$
0
0

Can't really answer the first two questions...

 

However, we shut down the Windchill services every night during our daily maintenance routine.   The computer doesn't get rebooted very often, but those services get shut down and restarted every night.  

 

Don't really have a whole lot of flakiness that I have been made aware of.

 

I have heard it said that you should practice not until you get it right, but until you can't get it wrong.   Maybe software needs to take the same approach.

 

-marc

CAD / PLM Systems Manager

TriMark Corporation

A few Creo Parametric Simulate Enhancement Requests

$
0
0

Hi,

 

I hope some people will find the following ideas of value so they can be added to the software in the very near future.

Most of these I'm sure others have thought of in the past.

Please vote on if you feel they are of value.

 

Add Ability to Creo Parametric Simulate to Copy Components and or Sub Assemblies and related Simulation Features from one Assembly to Another Assembly

Add Ability to Component Repeat Placement to Include Duplicating Simulate Features Like Contacts, Ground Springs and Preloads (pattern also)!

Isolate Component(s) By Hiding ALL Non-Selected Components for Temporary Effect (No Layers or Reps)

Add Ability to Select Creo Simulate Parametric Features in a Model or Assembly and Right Click to Locate or Highlight in Model Tree

Allow Creation and Editing of Simplified Reps and Changing States While in Creo Simulate / Mechanica

Create Simulate Results Window Templates from Design Study related to Assembly Analysis with multiple load cases and windows

reo Parametric Simulate - Design Analysis Flexible Dimensions (model dimension variation driven from analysis) and Spec…

Creo Simulate - Layer Control While Defining a Strain Vector Plot of Only Selected Surfaces and Abilty to display vectors on only surfaces in dirrect view.

Add ability to Creo Simulate Fasteners to Work With Tapped Hole Lead in Chamfers & Counter Bores

Improve and or Add Ability to Copy / Duplicate Load Sets, Loads, Constraints, Forces and Improve Naming and Function Consistency

Creo Simulate - Allow you to select a Model or Sub Assembly in the Main Window and Right Click to Open It.

Creo Parametric Simulate - Add Ability to Edit Model Feature Dimensions While in Simulate

Mechanica / Simulate Edit Load Set Description

Creo Parametric Simulate - Delete Multiple Analysis

Creo Simulate / Mechanica - Add ability to use Fluid Cavities with displacement equations

 

Thanks

Don Anderson

Re: RE: Windchill cold backup & restore - disaster recovery

$
0
0

Over four years later, not much has changed

Re: incorrect von mises and max principal of simple lifting lug static analysis

$
0
0

Cheers, can i ask why u didnt use the surface i created? The top of the hole. Where the lifting tool force should be applied.


Re: doc2pv.exe crashes when publishing

$
0
0

You need to check the local publishing with docbatch.bat

Surface Regions Improvements - Creo Simulate Option to Split into Segments

$
0
0

urface re

Please vote on the above idea related to Surface Regions in Creo Simulate Parametric.

 

Thanks,

Don Anderson

Re: How come the "pushingforce" drops to zero at the peak of the snap?

$
0
0

yes, with a static coef. of friction at 0.6

Re: incorrect von mises and max principal of simple lifting lug static analysis

Re: How to show bend note in flat view of drawing.

$
0
0

I had been in that area but didnt know what to click. That worked. Thank you.

Re: slidder relation

$
0
0

Probably the easiest way is to define a gear connection.  Just use the same diameter for both of the gears and they will move at the same speed.

Re: incorrect von mises and max principal of simple lifting lug static analysis

$
0
0

Almost there ty for taking the time to help me

 

The surface should be more like this

ptc2.PNG

the angle from the middle of the surface to the midplane is 45 degree. The area is something i got from the lifting tool.

Also had problem running the simulation on that part you sent. It gave large deformaton issue among some.


Re: Dimensional Constants in Valve Sizing Equations?

$
0
0

Thanks Mark. I like your idea of using the "k" factor to deal with the units within the equation. I think it's rather elegant. However, it leaves unanswered the question of what goes into the 63.4 constant. I wish I could see where that came from. Regarding Cv, the discussions of its origins say that it was the gallons per minute of 60 degree F water that would flow through a valve with a 1 psi pressure drop. I think that would mean that Cv would probably have some units, even though, as you point out, some similar things, like discharge coefficients, are dimensionless.

 

I noticed something else yesterday. In the English unit system, 2g often appears in equations. 2g is 2*32.17405=64.35, which is close to the 63.4 constant in the equation. I wonder if that means anything?

Re: doc2pv.exe crashes when publishing

$
0
0

if I try that I get this error:

 

D:\ptc\creo_view_adapters\doc_setup>docbatch.bat D:\FTP\worker\w1i1j2\test.doc

Recipe file: D:/ptc/creo_view_adapters/doc_setup/doc2pv.rcp

Source file: D:/FTP/worker/w1i1j2/test.doc

Output file: D:/ptc/creo_view_adapters/doc_setup/test_doc.pvs

Publishing document : COMPLETE

doc2pv Error:63002: Failed to publish document file "D:/FTP/worker/w1i1j2/test.d

oc" to "D:/ptc/creo_view_adapters/doc_setup/test_doc.pdf"

 

 

I tried the solutions from found on the support page for the Error:63002: Failed to publish document file but the situation is the same.

Re: Referencing Solutions

$
0
0

Richard Jackson wrote:

 

 

I suppose a few of us still live in the hope that our battles against a whole P-T-Sea of troubles may one day do away with these restrictions.

Maybe. If P-T-Sea of troubles sells Mathcad to another company, that has a very different attitude and way of working.

 

Or puts in on GitHub and makes it open source...

 

Stuart

Re: Excel woes - a Mathcad Marketing opportunity?

$
0
0

StuartBruff wrote:

 

  ... Sounds like a Mathcad opportunity to me ...

 

 

No. For all of us.

Re: batch runs...

$
0
0

Does running the analysis as a batch run use a license? we only have 6 licenses therefore it would be amazing if it didn't

Viewing all 12591 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>